diff --git a/src/game/client/hl2mp/c_hl2mp_player.cpp b/src/game/client/hl2mp/c_hl2mp_player.cpp index dc77c0e509..6c60d2b9e0 100644 --- a/src/game/client/hl2mp/c_hl2mp_player.cpp +++ b/src/game/client/hl2mp/c_hl2mp_player.cpp @@ -962,7 +962,10 @@ void C_HL2MP_Player::StartSprinting( void ) m_fIsSprinting = true; #ifdef NEO - IN_LeanToggleReset(); + if (IsLocalPlayer()) + { + IN_LeanToggleReset(); + } #endif // NEO } diff --git a/src/game/client/neo/c_neo_player.cpp b/src/game/client/neo/c_neo_player.cpp index 19a63a3b66..9db64814dd 100644 --- a/src/game/client/neo/c_neo_player.cpp +++ b/src/game/client/neo/c_neo_player.cpp @@ -1298,8 +1298,12 @@ void C_NEO_Player::PostThink(void) Weapon_SetZoom(false); m_bInVision = m_bInThermOpticCamo = false; - IN_LeanReset(); - LiftAllToggleKeys(); + + if (IsLocalPlayer()) + { + IN_LeanReset(); + LiftAllToggleKeys(); + } if (IsLocalPlayer() && GetDeathTime() != 0 && (GetTeamNumber() == TEAM_JINRAI || GetTeamNumber() == TEAM_NSF)) { @@ -1685,7 +1689,10 @@ bool C_NEO_Player::ShouldDrawHL2StyleQuickHud(void) void C_NEO_Player::Weapon_Drop(C_NEOBaseCombatWeapon *pWeapon) { m_bIneligibleForLoadoutPick = true; - IN_AimToggleReset(); + if (IsLocalPlayer()) + { + IN_AimToggleReset(); + } if (pWeapon->IsGhost()) { @@ -1711,7 +1718,10 @@ void C_NEO_Player::StartSprinting(void) void C_NEO_Player::StopSprinting(void) { m_fIsSprinting = false; - IN_SpeedReset(); + if (IsLocalPlayer()) + { + IN_SpeedReset(); + } } bool C_NEO_Player::CanSprint(void) @@ -1875,7 +1885,10 @@ void C_NEO_Player::Weapon_SetZoom(const bool bZoomIn) else { m_Local.m_iHideHUD |= HIDEHUD_CROSSHAIR; - IN_AimToggleReset(); + if (IsLocalPlayer()) + { + IN_AimToggleReset(); + } } const int fov = GetDefaultFOV(); diff --git a/src/game/shared/gamemovement.cpp b/src/game/shared/gamemovement.cpp index 03f6a75189..eb6844e618 100644 --- a/src/game/shared/gamemovement.cpp +++ b/src/game/shared/gamemovement.cpp @@ -2668,7 +2668,10 @@ bool CGameMovement::CheckJumpButton( void ) OnJump(mv->m_outJumpVel.z); #if defined NEO && defined CLIENT_DLL - IN_LeanToggleReset(); + if (neoPlayer->IsLocalPlayer()) + { + IN_LeanToggleReset(); + } #endif // NEO && CLIENT_DLL // Set jump time. diff --git a/src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp b/src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp index 5eb1735566..cffca09b1e 100644 --- a/src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp +++ b/src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp @@ -524,7 +524,10 @@ bool CNEOBaseCombatWeapon::Holster(CBaseCombatWeapon* pSwitchingTo) pOwner->Weapon_SetZoom(false); } #ifdef CLIENT_DLL - IN_AimToggleReset(); + if (pOwner->IsLocalPlayer()) + { + IN_AimToggleReset(); + } #endif // CLIENT_DLL }