mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
Lots of updates
- Map-specific pre-match times - Remove /load and change /start syntax to /start <map> - Scripts for each map that are run at start time, barrier removal time, and end time - New map forest-3 - A few minor bugfixes
This commit is contained in:
parent
acfeef6d01
commit
2be8eea781
10 changed files with 87 additions and 27 deletions
|
|
@ -1,9 +1,9 @@
|
|||
-- Chatcommands for SSG
|
||||
|
||||
core.register_chatcommand("load", {
|
||||
core.register_chatcommand("start", {
|
||||
params = "<map>",
|
||||
privs = {match_manager = true},
|
||||
description = "Load a map",
|
||||
description = "Start a match on <map>",
|
||||
func = function(_, param)
|
||||
if not param or param == "" then
|
||||
return false, "-!- You must specify a map name!"
|
||||
|
|
@ -12,19 +12,8 @@ core.register_chatcommand("load", {
|
|||
if match_state == "pre_match" or match_state == "post_match" or match_state == "in_progress" then
|
||||
return false, "-!- Match is already in progress!"
|
||||
end
|
||||
|
||||
map_data = place_map(param)
|
||||
|
||||
return true, "-!- Map loaded!"
|
||||
end
|
||||
})
|
||||
|
||||
core.register_chatcommand("start", {
|
||||
params = "",
|
||||
privs = {match_manager = true},
|
||||
description = "Start the match",
|
||||
func = function()
|
||||
start_match()
|
||||
|
||||
start_match(param)
|
||||
return true, "-!- Match started!"
|
||||
end
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue