v1.2.2
This commit is contained in:
parent
8f8dd18c6b
commit
190f94b2b9
@ -127,11 +127,13 @@ local function exitlevel(player, ...)
|
|||||||
end
|
end
|
||||||
COM_AddCommand("exit", exitlevel)
|
COM_AddCommand("exit", exitlevel)
|
||||||
|
|
||||||
COM_AddCommand("spba_clearcheats", function(player)
|
local function clearcheats(player)
|
||||||
|
if not player.spectator then
|
||||||
clearcheats = true
|
clearcheats = true
|
||||||
CONS_Printf(player, "SPB Attack cheats will be cleared on next round")
|
CONS_Printf(player, "SPB Attack cheats will be cleared on next round")
|
||||||
end
|
end
|
||||||
)
|
end
|
||||||
|
COM_AddCommand("spba_clearcheats", clearcheats)
|
||||||
|
|
||||||
--DEBUGGING
|
--DEBUGGING
|
||||||
--local function printTable(tb)
|
--local function printTable(tb)
|
||||||
@ -332,7 +334,7 @@ local function saveTime(player)
|
|||||||
gamemap,
|
gamemap,
|
||||||
player.name,
|
player.name,
|
||||||
player.mo.skin,
|
player.mo.skin,
|
||||||
player.mo.color,
|
player.skincolor,
|
||||||
timeFinished,
|
timeFinished,
|
||||||
splits,
|
splits,
|
||||||
Flags
|
Flags
|
||||||
@ -416,7 +418,7 @@ local function think()
|
|||||||
|
|
||||||
if leveltime < startTime then
|
if leveltime < startTime then
|
||||||
Flags = $ & !(F_SPBATK | F_SPBEXP | F_SPBBIG | F_SPBJUS)
|
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
|
Flags = $ | F_SPBATK
|
||||||
if server.SPBAexpert then
|
if server.SPBAexpert then
|
||||||
Flags = $ | F_SPBEXP
|
Flags = $ | F_SPBEXP
|
||||||
@ -430,6 +432,7 @@ local function think()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
for p in players.iterate do
|
for p in players.iterate do
|
||||||
|
if not p.spectator then
|
||||||
if p.SPBAKARTBIG then
|
if p.SPBAKARTBIG then
|
||||||
Flags = $ | F_SPBBIG
|
Flags = $ | F_SPBBIG
|
||||||
end
|
end
|
||||||
@ -439,6 +442,7 @@ local function think()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for p in players.iterate do
|
for p in players.iterate do
|
||||||
if p.laps >= mapheaderinfo[gamemap].numlaps and timeFinished == 0 then
|
if p.laps >= mapheaderinfo[gamemap].numlaps and timeFinished == 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user