Files
EscapistsReintroduced/docs/evidence/terrain-takeover-feature-2026-10-01/client-experiment-18/ERR_TerrainManagerProof.c.txt
T
jakub 6a667d8deb Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
2026-10-13 22:52:53 +02:00

21 lines
1.4 KiB
Plaintext

modded class ArmaReforgerScripted
{
protected float m_ERRManagerNext;
override void OnUpdate(BaseWorld world, float timeslice)
{
super.OnUpdate(world, timeslice);
m_ERRManagerNext -= timeslice;
if (m_ERRManagerNext > 0 || Replication.IsServer()) return;
m_ERRManagerNext = 5;
ERR_GameMode mode = ERR_GameMode.Get();
if (!mode || !mode.ERR_TerrainTakenOver()) return;
SCR_AdditionalGameModeSettingsComponent settings = SCR_AdditionalGameModeSettingsComponent.GetInstance();
SCR_PerceivedFactionManagerComponent perceived = SCR_PerceivedFactionManagerComponent.GetInstance();
SCR_PlayerListedAdminManagerComponent admins = SCR_PlayerListedAdminManagerComponent.GetInstance();
SCR_IdentityManagerComponent identity = SCR_IdentityManagerComponent.GetInstance();
SCR_EntityCatalogManagerComponent catalog = SCR_EntityCatalogManagerComponent.GetInstance();
PrintFormat("ERR MANAGER PROOF: settings=%1 perceived=%2 admins=%3 identity=%4 catalog=%5 factions=%6 loadouts=%7 perception=%8 chat=%9", settings && settings.GetOwner() == mode, perceived && perceived.GetOwner() == mode, admins && admins.GetOwner() == mode, identity && identity.GetOwner() == mode, catalog && catalog.GetOwner() == mode, GetFactionManager() && GetFactionManager().GetName() == "Factions", GetLoadoutManager() && GetLoadoutManager().GetName() == "Loadouts", GetPerceptionManager() && GetPerceptionManager().GetName() == "Perception", GetChat() && GetChat().GetName() == "Chat");
}
}