smooth recoil, crouching

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1424 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-11-11 16:11:51 +00:00
parent 6e3f739b96
commit edf220fc63
4 changed files with 18 additions and 11 deletions
+2 -1
View File
@@ -90,6 +90,7 @@ struct physent
{
vec o, vel; // origin, velocity
float yaw, pitch, roll; // used as vec in one place
float pitchvel;
float maxspeed; // cubes per second, 24 for player
int timeinair; // used for fake gravity
float radius, eyeheight, aboveeye; // bounding box size
@@ -99,7 +100,7 @@ struct physent
char move, strafe;
uchar state, type;
physent() : o(0, 0, 0), yaw(270), pitch(0), roll(0), maxspeed(16),
physent() : o(0, 0, 0), yaw(270), pitch(0), roll(0), pitchvel(0), maxspeed(16),
radius(1.1f), eyeheight(4.5f), aboveeye(0.7f),
state(CS_ALIVE), type(ENT_PLAYER)
{