From 47ed06f6013992971220db21196f5d3df8678ce7 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 30 Nov 2004 23:37:24 +0000 Subject: * WP_BLASTER animations --- src/game/bg_pmove.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 9c29b96b..7e7f7456 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -2627,7 +2627,12 @@ static void PM_TorsoAnimation( void ) return; if( pm->ps->weaponstate == WEAPON_READY ) - PM_ContinueTorsoAnim( TORSO_STAND ); + { + if( pm->ps->weapon == WP_BLASTER ) + PM_ContinueTorsoAnim( TORSO_STAND2 ); + else + PM_ContinueTorsoAnim( TORSO_STAND ); + } } @@ -2727,7 +2732,12 @@ static void PM_Weapon( void ) pm->ps->weaponstate = WEAPON_READY; if( !( pm->ps->persistant[ PERS_STATE ] & PS_NONSEGMODEL ) ) - PM_StartTorsoAnim( TORSO_STAND ); + { + if( pm->ps->weapon == WP_BLASTER ) + PM_ContinueTorsoAnim( TORSO_STAND2 ); + else + PM_ContinueTorsoAnim( TORSO_STAND ); + } return; } @@ -2930,6 +2940,10 @@ static void PM_Weapon( void ) } break; + case WP_BLASTER: + PM_StartTorsoAnim( TORSO_ATTACK2 ); + break; + default: PM_StartTorsoAnim( TORSO_ATTACK ); break; -- cgit