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:
+2
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user