Add garage car variants and yard parking; record Workshop 0.0.142
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user