This commit is contained in:
Not 2022-03-28 13:09:23 +02:00
parent 8f8dd18c6b
commit 190f94b2b9
1 changed files with 13 additions and 9 deletions

View File

@ -127,11 +127,13 @@ local function exitlevel(player, ...)
end
COM_AddCommand("exit", exitlevel)
COM_AddCommand("spba_clearcheats", function(player)
local function clearcheats(player)
if not player.spectator then
clearcheats = true
CONS_Printf(player, "SPB Attack cheats will be cleared on next round")
end
)
end
COM_AddCommand("spba_clearcheats", clearcheats)
--DEBUGGING
--local function printTable(tb)
@ -332,7 +334,7 @@ local function saveTime(player)
gamemap,
player.name,
player.mo.skin,
player.mo.color,
player.skincolor,
timeFinished,
splits,
Flags
@ -416,7 +418,7 @@ local function think()
if leveltime < startTime then
Flags = $ & !(F_SPBATK | F_SPBEXP | F_SPBBIG | F_SPBJUS)
if server.SPBArunning then
if leveltime > startTime - (3 * TICRATE) / 2 and server.SPBArunning then
Flags = $ | F_SPBATK
if server.SPBAexpert then
Flags = $ | F_SPBEXP
@ -430,11 +432,13 @@ local function think()
end
end
for p in players.iterate do
if p.SPBAKARTBIG then
Flags = $ | F_SPBBIG
end
if p.SPBAjustice then
Flags = $ | F_SPBJUS
if not p.spectator then
if p.SPBAKARTBIG then
Flags = $ | F_SPBBIG
end
if p.SPBAjustice then
Flags = $ | F_SPBJUS
end
end
end
end