From 7438bb6f08a33774acd685ab470bce1ed1d7d22d Mon Sep 17 00:00:00 2001 From: Blur Date: Tue, 8 Oct 2024 23:26:25 -0500 Subject: [PATCH] limit escape spawner to players ingame and alive --- src/Lua/Gimmicks/escapespawner.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Lua/Gimmicks/escapespawner.lua b/src/Lua/Gimmicks/escapespawner.lua index 9ba5ba0..4778ddb 100644 --- a/src/Lua/Gimmicks/escapespawner.lua +++ b/src/Lua/Gimmicks/escapespawner.lua @@ -127,7 +127,9 @@ addHook("ThinkFrame", function() if PTSR.pizzatime then for player in players.iterate do - if (player.mo and player.mo.valid) then + if (player.mo and player.mo.valid) + and (player.mo.health) and (not player.spectator) + and (not player.ptsr.outofgame) then local dist = R_PointToDist2(player.mo.x, player.mo.y, v.x, v.y) if dist < 4096*FU then