Files
EscapistsReintroduced/docs/evidence/terrain-takeover-feature-2026-10-01/client-experiment-21/ERR_TerrainValidationProbe.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

16 lines
595 B
Plaintext

modded class ArmaReforgerScripted
{
protected float m_ERRPairNext;
override void OnUpdate(BaseWorld world, float timeslice)
{
super.OnUpdate(world, timeslice);
m_ERRPairNext -= timeslice;
if (m_ERRPairNext > 0) return;
m_ERRPairNext = 5;
if (!GetGameMode()) return;
ERR_GameMode escape = ERR_GameMode.Get();
bool takeover = escape && escape.ERR_TerrainTakenOver();
PrintFormat("ERR TERRAIN PAIR: session=%1 server=%2 mode=%3 takeover=%4 controller=%5", RplSession.Mode(), Replication.IsServer(), GetGameMode().Type().ToString(), takeover, GetPlayerController() != null);
}
}