Server gets the current save game from a player in the game (on join and every few minutes) instead of replaying actions; vehicle fire/smoke synced, also for parked cars

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 11:15:18 +02:00
co-authored by Claude Opus 5.5
parent bdaedcc1e8
commit b3405d3752
5 changed files with 110 additions and 5 deletions
+11
View File
@@ -168,6 +168,17 @@ namespace MSCO
return list;
}
/// <summary>Fahrzeuge, die gerade niemand besitzt (geparkt).</summary>
public List<SyncedBody> FreeVehicles()
{
var list = new List<SyncedBody>();
foreach (SyncedBody b in byId.Values)
if (b.IsVehicle && b.OwnerId == SyncedBody.NoOwner && b.Rb != null) list.Add(b);
return list;
}
public bool IsLocalBody(SyncedBody b) { return IsLocal(b); }
/// <summary>Fahrzeuge, die der lokale Spieler gerade besitzt (fährt/schiebt).</summary>
public List<SyncedBody> LocalVehicles()
{