forked from Not/srb2k-leaderboard
v1.2.8
This commit is contained in:
parent
bc002667c8
commit
36134572af
@ -490,6 +490,24 @@ local function think()
|
|||||||
end
|
end
|
||||||
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)
|
Flags = $ & !(F_SPBATK | F_SPBEXP | F_SPBBIG | F_SPBJUS)
|
||||||
if leveltime > startTime - (3 * TICRATE) / 2 and server.SPBArunning then
|
if leveltime > startTime - (3 * TICRATE) / 2 and server.SPBArunning then
|
||||||
Flags = $ | F_SPBATK
|
Flags = $ | F_SPBATK
|
||||||
|
Loading…
Reference in New Issue
Block a user