From a9704e1bfbc1cf852933992a03b2c8a5dea43e26 Mon Sep 17 00:00:00 2001 From: zaCade Date: Tue, 28 Aug 2018 12:51:15 +0200 Subject: [PATCH] ItemSpawn: Disable kill messages. They cause errors on non-client calls :B --- ItemSpawn/scripting/items/balrog.inc | 2 +- ItemSpawn/scripting/items/whiteknight.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ItemSpawn/scripting/items/balrog.inc b/ItemSpawn/scripting/items/balrog.inc index a30ee646..a026be70 100644 --- a/ItemSpawn/scripting/items/balrog.inc +++ b/ItemSpawn/scripting/items/balrog.inc @@ -335,7 +335,7 @@ public void SpawnBalrog(float fOrigin[3]) SetEntityBBox(iHealth, view_as({-124.0, -120.0, -188.2}), view_as({124.0, 120.0, 188.2})); SetEntityProps(iHealth); - HookSingleEntityOutput(iHealth, "OnBreak", BalrogKill, true); +// HookSingleEntityOutput(iHealth, "OnBreak", BalrogKill, true); // game_ui. int iControls = CreateEntityAtOrigin("game_ui", fOrigin); diff --git a/ItemSpawn/scripting/items/whiteknight.inc b/ItemSpawn/scripting/items/whiteknight.inc index a4db9c0e..2d4a5b2b 100644 --- a/ItemSpawn/scripting/items/whiteknight.inc +++ b/ItemSpawn/scripting/items/whiteknight.inc @@ -545,7 +545,7 @@ public void SpawnWhiteKnight(float fOrigin[3]) SetEntityBBox(iHealth, view_as({-36.0, -52.0, 48.0}), view_as({36.0, 52.0, 160.0})); SetEntityProps(iHealth); - HookSingleEntityOutput(iHealth, "OnBreak", WhiteKnightKill, true); +// HookSingleEntityOutput(iHealth, "OnBreak", WhiteKnightKill, true); // game_ui. int iControls = CreateEntityAtOrigin("game_ui", fOrigin);