Prevent gB_ForceJump when teleporting to a checkpoint in the start zone (#1240)

Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
This commit is contained in:
Nora 2025-05-12 08:17:24 +03:00 committed by GitHub
parent 0151ace718
commit cd4f1c9248
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -257,6 +257,12 @@ public void Shavit_OnRestart(int client, int track)
gI_LastRestart[client] = GetGameTickCount();
}
public Action Shavit_OnTeleportPre(int client, int index, int target)
{
// to prevent gB_ForceJump when teleporting to a checkpoint in the start zone
gI_LastRestart[client] = GetGameTickCount();
}
public void Shavit_OnEnterZone(int client, int type, int track, int id, int entity, int data)
{
if (!IsValidClient(client, true) || IsFakeClient(client))