diff --git a/LagCompensation/gamedata/LagCompensation.games.txt b/LagCompensation/gamedata/LagCompensation.games.txt index 6ba768a..932fbdb 100644 --- a/LagCompensation/gamedata/LagCompensation.games.txt +++ b/LagCompensation/gamedata/LagCompensation.games.txt @@ -134,7 +134,7 @@ { "library" "server" "linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\x3C\x03\x00\x00" - "windows" "\x55\x8B\xEC\x83\xE4\xF8\x81\xEC\xD8\x01\x00\x00" + "windows" "\x55\x8B\xEC\x83\xE4\xF8\x81\xEC\xD8\x04\x00\x00" } "CLogicMeasureMovement::SetTarget" diff --git a/LagCompensation/scripting/LagCompensation.sp b/LagCompensation/scripting/LagCompensation.sp index ea64873..754769d 100644 --- a/LagCompensation/scripting/LagCompensation.sp +++ b/LagCompensation/scripting/LagCompensation.sp @@ -448,6 +448,7 @@ public void OnClientConnected(int client) { g_bDisableLagComp[client] = false; g_iDisableLagComp[client] = 0; + g_aLerpTicks[client] = 0; } public void OnClientCookiesCached(int client) @@ -462,7 +463,7 @@ public void OnClientCookiesCached(int client) public void OnClientSettingsChanged(int client) { - if(!IsClientInGame(client)) + if(!IsClientInGame(client) || IsFakeClient(client)) return; float fLerpTime = GetEntPropFloat(client, Prop_Data, "m_fLerpTime");