From 4fab404684db518529775febf3617b9b108a2c8e Mon Sep 17 00:00:00 2001 From: Beu Date: Sun, 8 May 2022 19:24:49 +0200 Subject: [PATCH] Fix error when trying to send controls to player not spawned & add a reset with right click --- TM_DebugMode.Script.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/TM_DebugMode.Script.txt b/TM_DebugMode.Script.txt index cb3c598..e777967 100644 --- a/TM_DebugMode.Script.txt +++ b/TM_DebugMode.Script.txt @@ -106,6 +106,8 @@ foreach (Event in UIManager.PendingEvents) { } foreach (Target in Targets) { + if (Target.SpawnStatus == CSmPlayer::ESpawnStatus::NotSpawned) continue; + Target.TrustClientSimu = False; SetPlayerVehicle_ControlledByMode(Target, True); @@ -131,6 +133,8 @@ foreach (Event in UIManager.PendingEvents) { } } else { foreach (Target in Targets) { + if (Target.SpawnStatus == CSmPlayer::ESpawnStatus::NotSpawned) continue; + SetPlayerVehicle_ControlledByMode(Target, False); Race::ApplyNetworkMode(Target); //< Restore TrustClientSimu to its default value } @@ -371,6 +375,7 @@ Text GetManialink() {