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() {
+
@@ -678,6 +683,17 @@ Text GetManialink() {
P_DebugMode_PlayersControl_Speed = Entry_PlayersControl_Speed.Value;
P_DebugMode_PlayersControl_Steer = Entry_PlayersControl_Steer.Value;
}
+ case CMlScriptEvent::Type::MouseRightClick: {
+ if (TL::StartsWith("quad-playerscontrol-player-", Event.Control.ControlId)) {
+ declare Text Target = TL::Split("-",Event.Control.ControlId)[3];
+ if (Target != "visible" || (Target == "visible" && GUIPlayer != Null)) {
+ if (Target == "visible") {
+ Target = GUIPlayer.User.Login;
+ }
+ SendCustomEvent("DebugMode.PlayersControl.Set", ["", "", Target]);
+ }
+ }
+ }
case CMlScriptEvent::Type::MouseOver: {
if (Event.Control.Parent.ToolTip != "") {
Frame_Tooltip.Visible = True;