diff options
author | Tim Angus <tim@ngus.net> | 2009-10-03 11:37:35 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:11 +0000 |
commit | bac576514472b4f1d70a53078182d29e93c34d59 (patch) | |
tree | acb6f0056003701d26d9d1ed3fb48bb195187be3 /src/qcommon | |
parent | bcc79996c4c254a528e7b00f260d8ebd09e2a820 (diff) |
* First person weapon animation
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/msg.c | 2 | ||||
-rw-r--r-- | src/qcommon/q_shared.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/qcommon/msg.c b/src/qcommon/msg.c index ac581b9e..47fbc2dc 100644 --- a/src/qcommon/msg.c +++ b/src/qcommon/msg.c @@ -808,6 +808,7 @@ netField_t entityStateFields[] = { NETF(angles2[1]), 0 }, { NETF(eType), 8 }, { NETF(torsoAnim), 8 }, +{ NETF(weaponAnim), 8 }, { NETF(eventParm), 8 }, { NETF(legsAnim), 8 }, { NETF(groundEntityNum), GENTITYNUM_BITS }, @@ -1125,6 +1126,7 @@ netField_t playerStateFields[] = { PSF(pm_time), -16 }, { PSF(eventSequence), 16 }, { PSF(torsoAnim), 8 }, +{ PSF(weaponAnim), 8 }, { PSF(movementDir), 4 }, { PSF(events[0]), 8 }, { PSF(legsAnim), 8 }, diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 667fba73..232982f5 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -1060,6 +1060,8 @@ typedef struct playerState_s { int torsoTimer; // don't change low priority animations until this runs out int torsoAnim; // mask off ANIM_TOGGLEBIT + int weaponAnim; // mask off ANIM_TOGGLEBIT + int movementDir; // a number 0 to 7 that represents the reletive angle // of movement to the view angle (axial and diagonals) // when at rest, the value will remain unchanged @@ -1212,6 +1214,7 @@ typedef struct entityState_s { int weapon; // determines weapon and flash model, etc int legsAnim; // mask off ANIM_TOGGLEBIT int torsoAnim; // mask off ANIM_TOGGLEBIT + int weaponAnim; // mask off ANIM_TOGGLEBIT int generic1; } entityState_t; |