Applied even more player animations to SP HL2 weapons

This commit is contained in:
Blixibon 2021-11-17 00:19:46 -06:00
parent 045cc293f3
commit dc6d4e0963
2 changed files with 7 additions and 0 deletions

View File

@ -828,6 +828,10 @@ void CWeaponCrossbow::PrimaryAttack( void )
{
m_iPrimaryAttacks++;
gamestats->Event_WeaponFired( pPlayer, true, GetClassname() );
#ifdef MAPBASE
pPlayer->SetAnimation( PLAYER_ATTACK1 );
#endif
}
}

View File

@ -1765,6 +1765,9 @@ void CWeaponPhysCannon::DryFire( void )
if ( pOwner )
{
pOwner->RumbleEffect( RUMBLE_PISTOL, 0, RUMBLE_FLAG_RESTART );
#ifdef MAPBASE // TODO: Is this animation too dramatic?
pOwner->SetAnimation( PLAYER_ATTACK1 );
#endif
}
}