mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
Large update (#11)
* Add a lot of new stuff
* Add even more new stuff
* Fix /start...
* Revert "Fix /start..."
This reverts commit 00b55b666a.
* Fix syntax error.. (how did this get here)
* Fix countdown persisting after aborting
* Add xpanes for the snow map
* Change the 'your' in the loading tips
why english why -_-
Co-authored-by: CrazyladMT <247920740+CrazyladMT@users.noreply.github.com>
* Another loading tips change...
Co-authored-by: CrazyladMT <247920740+CrazyladMT@users.noreply.github.com>
* Fix '/stop' crashing...
* Fix another crash with /stop...
* Update mods/game/functions/init.lua
Co-authored-by: CrazyladMT <247920740+CrazyladMT@users.noreply.github.com>
* Remove snow map for now
* Remove a loading tip...
* Rename /list_maps to /maps
* Update map making README
* Hopefully fix whitespaces...
---------
Co-authored-by: CrazyladMT <247920740+CrazyladMT@users.noreply.github.com>
This commit is contained in:
parent
fc1407feff
commit
46ce669100
48 changed files with 677 additions and 188 deletions
|
|
@ -28,7 +28,7 @@ core.register_chatcommand("stop", {
|
|||
privs = {match_manager = true},
|
||||
description = "Terminate the match",
|
||||
func = function()
|
||||
if match_state ~= "pre_match" and match_state ~= "post_match" and match_state ~= "not_started" then
|
||||
if match_state ~= "post_match" and match_state ~= "not_started" then
|
||||
core.chat_send_all(core.colorize("red", "Match terminated."))
|
||||
end_match()
|
||||
|
||||
|
|
@ -38,3 +38,16 @@ core.register_chatcommand("stop", {
|
|||
return false, "Match cannot be terminated at the moment."
|
||||
end
|
||||
})
|
||||
|
||||
core.register_chatcommand("maps", {
|
||||
params = "",
|
||||
privs = {match_manager = true},
|
||||
description = "List all maps",
|
||||
func = function()
|
||||
local list_string = "Available maps:\n"
|
||||
for _, map in pairs(map_list) do
|
||||
list_string = list_string .. map .. "\n"
|
||||
end
|
||||
return true, list_string .. "\nUse /start <map> to start a match."
|
||||
end
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue