diff --git a/ReplicateGravity/scripting/ReplicateGravity.sp b/ReplicateGravity/scripting/ReplicateGravity.sp index fe32b46d..89192ab5 100644 --- a/ReplicateGravity/scripting/ReplicateGravity.sp +++ b/ReplicateGravity/scripting/ReplicateGravity.sp @@ -61,4 +61,17 @@ public void OnGameFrame() g_flClientGravityReplicate[client] = flClientGravityReplicate; } } -} \ No newline at end of file +} + +//probably not needed at all. +public void OnClientDisconnect(int client) +{ + float flServerGravity = g_hCVar_Gravity.FloatValue; + g_flClientGravityReplicate[client] = flServerGravity; +} + +public void OnClientPostAdminCheck(int client) +{ + float flServerGravity = g_hCVar_Gravity.FloatValue; + g_flClientGravityReplicate[client] = flServerGravity; +}