This commit is contained in:
Not 2022-03-28 13:11:51 +02:00
parent bc002667c8
commit 36134572af
1 changed files with 18 additions and 0 deletions

View File

@ -490,6 +490,24 @@ local function think()
end
end
-- Autospec
if leveltime == 1 then
local gamer = nil
for p in players.iterate do
if p.valid and not p.spectator then
gamer = #p
end
end
if gamer then
for p in players.iterate do
if p.valid and p.spectator then
COM_BufInsertText(p, string.format("view \"%d\"", gamer))
end
end
end
end
-- Gamemode flags
Flags = $ & !(F_SPBATK | F_SPBEXP | F_SPBBIG | F_SPBJUS)
if leveltime > startTime - (3 * TICRATE) / 2 and server.SPBArunning then
Flags = $ | F_SPBATK