Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Apr 7, 2022
2 parents 36054a5 + 2c41a96 commit 5476b6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3286,6 +3286,15 @@ void CBasePlayer::ForceClientDllUpdate()
{
m_iClientHealth = -1;
m_iClientBattery = -1;
m_iClientHideHUD = -1;
m_iClientFOV = -1;
m_ClientWeaponBits = 0;

for (int i = 0; i < MAX_AMMO_SLOTS; ++i)
{
m_rgAmmoLast[i] = 0;
}

m_iTrain |= TRAIN_NEW; // Force new train message.
m_fWeapon = false; // Force weapon send
m_fKnownItem = false; // Force weaponinit messages.
Expand Down

0 comments on commit 5476b6b

Please sign in to comment.