Compare commits
No commits in common. "9d50705d9a2948b33dcaddcca723d76e618a1ddb" and "57120e257adc403b87aead6efbc7b1ae4e10b7e7" have entirely different histories.
9d50705d9a
...
57120e257a
13
lb_store.lua
13
lb_store.lua
@ -353,14 +353,17 @@ COM_AddCommand("lb_write_checksums", function(player)
|
|||||||
end, COM_ADMIN)
|
end, COM_ADMIN)
|
||||||
|
|
||||||
COM_AddCommand("lb_known_maps", function(player, map)
|
COM_AddCommand("lb_known_maps", function(player, map)
|
||||||
local mapnum = gamemap
|
if not map then
|
||||||
if map then
|
CONS_Printf(player, "Usage: <map>")
|
||||||
mapnum = mapnumFromExtended(map)
|
CONS_Printf(player, "Print all known checksums under <map>")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local mapnum = mapnumFromExtended(map)
|
||||||
if not mapnum then
|
if not mapnum then
|
||||||
CONS_Printf(player, string.format("invalid map '%s'", map))
|
CONS_Printf(player, string.format("invalid map '%s'", map))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
local known = {}
|
local known = {}
|
||||||
|
|
||||||
@ -377,7 +380,7 @@ COM_AddCommand("lb_known_maps", function(player, map)
|
|||||||
|
|
||||||
CONS_Printf(player, "Map Chck Records")
|
CONS_Printf(player, "Map Chck Records")
|
||||||
for checksum, count in pairs(known) do
|
for checksum, count in pairs(known) do
|
||||||
CONS_Printf(player, string.format("%s %s %d", G_BuildMapName(mapnum), checksum, count))
|
CONS_Printf(player, string.format("%s %s %d", map, checksum, count))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -686,7 +686,7 @@ local function moveRecords(player, from_map, from_checksum, to_map, to_checksum)
|
|||||||
|
|
||||||
CONS_Printf(player, "Please repack coldstore and restart the server for changes to take effect.")
|
CONS_Printf(player, "Please repack coldstore and restart the server for changes to take effect.")
|
||||||
end
|
end
|
||||||
COM_AddCommand("lb_move_records", moveRecords, COM_ADMIN)
|
COM_AddCommand("lb_move_records", moveRecords)
|
||||||
|
|
||||||
--DEBUGGING
|
--DEBUGGING
|
||||||
--local function printTable(tb)
|
--local function printTable(tb)
|
||||||
@ -1197,12 +1197,12 @@ local function saveTime(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- DEBUGGING
|
-- DEBUGGING
|
||||||
--local function saveLeaderboard(player, ...)
|
local function saveLeaderboard(player, ...)
|
||||||
-- TimeFinished = tonumber(... or player.realtime)
|
TimeFinished = tonumber(... or player.realtime)
|
||||||
-- splits = {1000, 2000, 3000}
|
splits = {1000, 2000, 3000}
|
||||||
-- saveTime(player)
|
saveTime(player)
|
||||||
--end
|
end
|
||||||
--COM_AddCommand("save", saveLeaderboard)
|
COM_AddCommand("save", saveLeaderboard)
|
||||||
|
|
||||||
local function regLap(player)
|
local function regLap(player)
|
||||||
if player.laps > prevLap and TimeFinished == 0 then
|
if player.laps > prevLap and TimeFinished == 0 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user