Skip to content

Commit

Permalink
New lua level header "ptsr_overtime_triggertag"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Sep 10, 2024
1 parent fd8e3ee commit 05204a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Lua/main_game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ addHook("ThinkFrame", do
if DiscordBot then
DiscordBot.Data.msgsrb2 = $ .. ":alarm_clock: Overtime!\n"
end

local overtime_triggertag = mapheaderinfo[gamemap].ptsr_overtime_triggertag
if overtime_triggertag and tonumber(overtime_triggertag) then
P_LinedefExecute(tonumber(overtime_triggertag))
end
elseif not (PTSR.aipf
and PTSR.aipf.valid)
PTSR:SpawnPFAI()
Expand Down

0 comments on commit 05204a3

Please sign in to comment.