crouching

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1419 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-11-11 14:20:52 +00:00
parent 9d74fda65d
commit eb81f05ec9
14 changed files with 56 additions and 46 deletions
+3 -2
View File
@@ -93,8 +93,9 @@ struct physent
float maxspeed; // cubes per second, 24 for player
int timeinair; // used for fake gravity
float radius, eyeheight, aboveeye; // bounding box size
float dyneyeheight() { return crouching ? eyeheight*3.0f/4.0f : eyeheight; }
bool inwater;
bool onfloor, onladder, jumpnext;
bool onfloor, onladder, jumpnext, crouching;
char move, strafe;
uchar state, type;
@@ -110,7 +111,7 @@ struct physent
vel.x = vel.y = vel.z = 0;
move = strafe = 0;
timeinair = 0;
onfloor = onladder = inwater = jumpnext = false;
onfloor = onladder = inwater = jumpnext = crouching = false;
}
};