From 39df3834604d5b91d62271bf1dd80ea44316a84d Mon Sep 17 00:00:00 2001 From: zaCade Date: Mon, 8 Apr 2019 12:24:10 +0200 Subject: [PATCH] entWatch4: Register spawned items on late load. --- _entWatch4/scripting/entWatch-core.sp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_entWatch4/scripting/entWatch-core.sp b/_entWatch4/scripting/entWatch-core.sp index 3cd386db..1fc45de3 100644 --- a/_entWatch4/scripting/entWatch-core.sp +++ b/_entWatch4/scripting/entWatch-core.sp @@ -165,6 +165,15 @@ public void OnMapStart() while (hConfig.GotoNextKey()); } + if (g_bLate) + { + int entity = INVALID_ENT_REFERENCE; + while ((entity = FindEntityByClassname(entity, "*")) != INVALID_ENT_REFERENCE) + { + OnEntitySpawned(entity); + } + } + delete hConfig; return; }