Fix oil leaking after joining: don't sync game-computed leak states/rates (LeakOilpan, LeakOilfilter, ...); vars <filter> diagnostic command

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 20:29:34 +02:00
co-authored by Claude Opus 5.5
parent 7d341126e8
commit 4801539b9d
4 changed files with 42 additions and 2 deletions
+5
View File
@@ -21,6 +21,7 @@ namespace MSCO
"fps [on|off] - show the frames per second (toggle)\n" +
"/admin - admin menu (kick / ban / teleport / cheats)\n" +
"vehicles | rig - debug info about vehicles / player models\n" +
"vars <filter> - synced vehicle values, e.g. vars oil (debug)\n" +
"debug - toggle sync debug output\n" +
"clear - clear this console";
@@ -129,6 +130,10 @@ namespace MSCO
case "vehicles":
foreach (string line in mp.DescribeVehicles()) print(line);
break;
case "vars":
// Diagnose: welche Fahrzeugwerte synchronisiert werden (z.B. "vars oil")
foreach (string line in mp.DescribeVehicleValues(args.Length > 1 ? args[1] : "")) print(line);
break;
case "debug":
FsmSync.Debug = !FsmSync.Debug;
print("Sync debug output " + (FsmSync.Debug ? "ON" : "OFF"));