mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Added new player animation types and applied more player animations to SP HL2 weapons
This commit is contained in:
@@ -1581,6 +1581,10 @@ bool CBaseCombatWeapon::DefaultDeploy( char *szViewModel, char *szWeaponModel, i
|
||||
|
||||
SetViewModel();
|
||||
SendWeaponAnim( iActivity );
|
||||
|
||||
#ifdef MAPBASE
|
||||
pOwner->SetAnimation( PLAYER_UNHOLSTER );
|
||||
#endif
|
||||
|
||||
pOwner->SetNextAttack( gpGlobals->curtime + SequenceDuration() );
|
||||
}
|
||||
@@ -1652,6 +1656,11 @@ bool CBaseCombatWeapon::Holster( CBaseCombatWeapon *pSwitchingTo )
|
||||
if (pOwner)
|
||||
{
|
||||
pOwner->SetNextAttack( gpGlobals->curtime + flSequenceDuration );
|
||||
|
||||
#ifdef MAPBASE
|
||||
if (pOwner->IsPlayer())
|
||||
static_cast<CBasePlayer*>(pOwner)->SetAnimation( PLAYER_HOLSTER );
|
||||
#endif
|
||||
}
|
||||
|
||||
// If we don't have a holster anim, hide immediately to avoid timing issues
|
||||
|
||||
Reference in New Issue
Block a user