From 9591238d17724c585ec084f9db96186489c8f32b Mon Sep 17 00:00:00 2001 From: Blur Date: Tue, 8 Oct 2024 23:19:16 -0500 Subject: [PATCH] disable escape spawner when game is over --- src/Lua/Gimmicks/escapespawner.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Lua/Gimmicks/escapespawner.lua b/src/Lua/Gimmicks/escapespawner.lua index 42b692a..9ba5ba0 100644 --- a/src/Lua/Gimmicks/escapespawner.lua +++ b/src/Lua/Gimmicks/escapespawner.lua @@ -100,6 +100,8 @@ addHook("ThinkFrame", function() if not (PTSR.ESLOCATIONS.loaded) then return end if not leveltime then return end -- man srb2 sucks if not PTSR.IsPTSR() then return end + if PTSR.gameover then return end + local cyclesleft = 50 while cyclesleft > 0 do