From e7551f1fe71cb40c3eb7a275431789c2d84b4d94 Mon Sep 17 00:00:00 2001 From: Bryce Hutchings Date: Sun, 9 Mar 2003 19:47:48 +0000 Subject: [PATCH] Support for torso pistol animations --- reaction/game/bg_pmove.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/reaction/game/bg_pmove.c b/reaction/game/bg_pmove.c index a470f932..8e7e9e78 100644 --- a/reaction/game/bg_pmove.c +++ b/reaction/game/bg_pmove.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.93 2003/03/09 19:47:48 niceass +// Support for torso pistol animations +// // Revision 1.92 2003/02/05 04:29:14 niceass // added support for akimbo animations // @@ -1808,13 +1811,15 @@ PM_TorsoAnimation static void PM_TorsoAnimation(void) { if (pm->ps->weaponstate == WEAPON_READY) { - if (pm->ps->weapon == WP_KNIFE) { + if (pm->ps->weapon == WP_KNIFE) PM_ContinueTorsoAnim(TORSO_STAND2); - } else if ( pm->ps->weapon == WP_AKIMBO) { + else if ( pm->ps->weapon == WP_AKIMBO) PM_ContinueTorsoAnim(TORSO_STAND3); - } else { + else if ( pm->ps->weapon == WP_PISTOL) + PM_ContinueTorsoAnim(TORSO_STAND4); + else PM_ContinueTorsoAnim(TORSO_STAND); - } + // QUARANTINE - Weapon Animation // Should always draw the weapon when it is just ready if (pm->ps->ammo[pm->ps->weapon] == 0) @@ -2285,14 +2290,14 @@ static void PM_Weapon(void) if (pm->ps->weaponstate == WEAPON_RAISING && !((pm->ps->persistant[PERS_WEAPONMODES] & RQ3_KNIFEMODE) && pm->ps->stats[STAT_BURST])) { pm->ps->weaponstate = WEAPON_READY; - if (pm->ps->weapon == WP_KNIFE) { + if (pm->ps->weapon == WP_KNIFE) PM_StartTorsoAnim(TORSO_STAND2); - // NiceAss: Support for special akimbo torso animations - } else if ( pm->ps->weapon == WP_AKIMBO ) { + else if ( pm->ps->weapon == WP_AKIMBO ) PM_StartTorsoAnim(TORSO_STAND3); - } else { + else if ( pm->ps->weapon == WP_PISTOL ) + PM_StartTorsoAnim(TORSO_STAND4); + else PM_StartTorsoAnim(TORSO_STAND); - } // temp hack if (pm->ps->ammo[pm->ps->weapon] == 0) { PM_ContinueWeaponAnim(WP_ANIM_EMPTY); @@ -2414,6 +2419,8 @@ static void PM_Weapon(void) // NiceAss: Support for akimbo torso attack animations if ( pm->ps->weapon == WP_AKIMBO ) PM_StartTorsoAnim(TORSO_ATTACK3); + else if ( pm->ps->weapon == WP_PISTOL ) + PM_StartTorsoAnim(TORSO_ATTACK4); else PM_StartTorsoAnim(TORSO_ATTACK);