#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 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