From f3d6752fe5e62a8561953f897ef1cfb04792c94a Mon Sep 17 00:00:00 2001 From: Dots Date: Mon, 19 Oct 2026 01:57:37 +0300 Subject: [PATCH] update OldOnGround in OnStartTouchGround as well --- addons/sourcemod/scripting/movementapi/forwards.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/sourcemod/scripting/movementapi/forwards.sp b/addons/sourcemod/scripting/movementapi/forwards.sp index b725055..d96773d 100644 --- a/addons/sourcemod/scripting/movementapi/forwards.sp +++ b/addons/sourcemod/scripting/movementapi/forwards.sp @@ -82,6 +82,9 @@ void Call_OnStartTouchGround(int client) Call_StartForward(H_OnStartTouchGround); Call_PushCell(client); Call_Finish(); + + // Immediately update OldOnGround state, so we can catch takeoffs that happen outside movement processing. + gB_OldOnGround[client] = true; } void Call_OnStopTouchGround(int client, bool jumped, bool ladderJump, bool jumpbug)