fix(world): resolve traffic freeze, player vehicle kick, mob npcs, void falls, subway fast-travel, and timeline playback

This commit is contained in:
CAtlas0784 committed 2026-09-18 16:11:34 +07:00
1 parent 67bdbae24b
commit 8470c3d413
9 files changed
+233 -123

No files matched your search

@@ -26,19 +26,28 @@ public sealed class CityTrafficEngine
public float MaxSpawnDistance { get; set; } = 160f;
public float DespawnDistance { get; set; } = 220f;
// Pool of verified vehicle configs with full models and multi-seat support
// Pool of verified vehicle configs with full models and multi-seat support (no damaged/wrecked models)
private static readonly uint[] TrafficVehiclePool =
[
81001001, // Sunset Skywing (Sedan)
81001002, // Korou RV6 (SUV)
81001003, // Kazama Voyage (Sedan)
81000007, // Sunset GT-X Specter (Sports Car)
81000002, // Korou Transporter M (Truck)
81000005, // Erebos Black Box (Van)
81004001, // Kazama CRN6 (Taxi)
81004027, // Kazama Sandstorm (Police Cruiser)
];
private readonly Random _rng = new();
public void NotifyVehicleBoarding(ulong entityId)
{
if (_simulatedVehicles.TryRemove(entityId, out var v))
{
v.HijackedByPlayer = true;
Console.WriteLine($"[TRAFFIC] Vehicle entity={entityId} boarded by player. Detached from traffic loop.");
}
}
public sealed class SimulatedVehicle
{
public ulong EntityId { get; set; }