Browse Source

Fix deploy animations sometimes not playing on weapon pickup (#299)

fix-cwd-path
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
4053dca7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dlls/player.cpp

8
dlls/player.cpp

@ -4609,8 +4609,16 @@ BOOL CBasePlayer::SwitchWeapon( CBasePlayerItem *pWeapon )
} }
m_pActiveItem = pWeapon; m_pActiveItem = pWeapon;
CBasePlayerWeapon* weapon = (CBasePlayerWeapon*)(pWeapon->GetWeaponPtr());
if (weapon)
weapon->m_ForceSendAnimations = true;
pWeapon->Deploy(); pWeapon->Deploy();
if (weapon)
weapon->m_ForceSendAnimations = false;
return TRUE; return TRUE;
} }

Loading…
Cancel
Save