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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user