Files
EscapistsReintroduced/docs/evidence/garage-dlc-yards-2026-11-06/without-rally-fixture.c
T
2026-11-06 11:32:33 +01:00

24 lines
977 B
C

#ifdef WORKBENCH
modded class ERR_GameMode
{
protected override void StartScenario() {}
protected override void EOnInit(IEntity owner)
{
super.EOnInit(owner);
if (SCR_Global.IsEditMode() || !Replication.IsServer()) return;
GetGame().GetCallqueue().CallLater(ERR_CheckRoadCars,2000,false);
}
protected void ERR_CheckRoadCars()
{
array<string> loaded={};GameProject.GetLoadedAddons(loaded);
ERR_ParkedCarCatalog catalog=new ERR_ParkedCarCatalog();catalog.Find();
if (loaded.Contains("6566A2D70498DA6B") || catalog.Prefabs.Count()!=28)
{ Print("ERR SMOKE FAIL: garage street-only catalog",LogLevel.ERROR);return; }
foreach (ResourceName name:catalog.Prefabs)
if (ERR_ParkedCarCatalog.Candidate(name,true)) {Print("ERR SMOKE FAIL: Rally leaked into street-only catalog",LogLevel.ERROR);return;}
Print("ERR SMOKE PASS: garage catalog resolves 28 street cars without Rally mounted");
Print("ERR SMOKE COMPLETE: garage optional DLC absence");
}
}
#endif