Skip to content

Commit

Permalink
limit escape spawner to players ingame and alive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Oct 9, 2024
1 parent 9591238 commit 7438bb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Lua/Gimmicks/escapespawner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7438bb6

Please sign in to comment.