From c17934626264aefb1ce51587828fee32e683d0f6 Mon Sep 17 00:00:00 2001 From: zaCade Date: Thu, 23 May 2024 19:03:42 +0200 Subject: [PATCH] [ReplicateGravity] Hopefully prevents replicating sv_gravity 0.0 --- ReplicateGravity/scripting/ReplicateGravity.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ReplicateGravity/scripting/ReplicateGravity.sp b/ReplicateGravity/scripting/ReplicateGravity.sp index 32c27239..fe32b46d 100644 --- a/ReplicateGravity/scripting/ReplicateGravity.sp +++ b/ReplicateGravity/scripting/ReplicateGravity.sp @@ -46,6 +46,9 @@ public void OnGameFrame() } float flClientGravity = GetEntityGravity(client); + if (flClientGravity == 0.0) + flClientGravity = 1.0; + float flClientGravityReplicate = flClientGravity * flServerGravity; if (flClientGravityReplicate != g_flClientGravityReplicate[client])