mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-05-30 23:47:40 +03:00
Fix metrocops using the wrong animation when pushing player with a gun
This commit is contained in:
parent
390dd80e41
commit
bbd8d86f87
@ -3548,7 +3548,11 @@ Activity CNPC_MetroPolice::NPC_TranslateActivity( Activity newActivity )
|
|||||||
// If we're shoving, see if we should be more forceful in doing so
|
// If we're shoving, see if we should be more forceful in doing so
|
||||||
if ( newActivity == ACT_PUSH_PLAYER )
|
if ( newActivity == ACT_PUSH_PLAYER )
|
||||||
{
|
{
|
||||||
|
#ifdef MAPBASE
|
||||||
|
if ( m_nNumWarnings >= METROPOLICE_MAX_WARNINGS && Weapon_TranslateActivity( ACT_MELEE_ATTACK1, NULL ) == ACT_MELEE_ATTACK_SWING )
|
||||||
|
#else
|
||||||
if ( m_nNumWarnings >= METROPOLICE_MAX_WARNINGS )
|
if ( m_nNumWarnings >= METROPOLICE_MAX_WARNINGS )
|
||||||
|
#endif
|
||||||
return ACT_MELEE_ATTACK1;
|
return ACT_MELEE_ATTACK1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user