]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - commands.cfg
Make it compilable
[xonotic/xonotic-data.pk3dir.git] / commands.cfg
index 0e528011a53aab79f8915770d67df3c757fd11e4..2d12a80f7e94480812448dbce5ef584c781549e2 100644 (file)
@@ -48,6 +48,8 @@ alias chmap "changelevel $*"
 alias rec "record demos/$1"
 alias ply "playdemo $1"
 alias tdem "timedemo $1"
+alias sv_loadconfig "exec $serverconfig"
+alias sv_restart "say \"Server will restart at the end of the match, you will all be reconnected automatically. $* \"; quit_and_redirect self"
 
 
 // ===============================================
@@ -58,6 +60,11 @@ alias menu_showhudexit "menu_cmd directmenu HUDExit"
 alias menu_showhudoptions "menu_cmd directpanelhudmenu $*"
 alias menu_showsandboxtools "menu_cmd directmenu SandboxTools"
 
+// command executed before loading a map by the menu
+// makes sure maxplayers is at least minplayers or bot_number + 1
+alias _menu_loadmap_prepare_maxpl "maxplayers $_menu_loadmap_maxplayers"
+alias menu_loadmap_prepare "disconnect; wait; g_campaign 0; menu_cmd rpn /_menu_loadmap_maxplayers menu_maxplayers minplayers bot_number 1 add max max def; _menu_loadmap_prepare_maxpl; g_maplist_shufflenow"
+
 
 // =========================================================
 //  cl_cmd (client console command) - client/gamecommand.qc
@@ -76,6 +83,10 @@ set sv_clientcommand_antispam_count 5 "Amount of commands considered spam before
 
 seta sv_status_privacy 1 "hide IP addresses from \"status\" and \"who\" replies shown to clients"
 
+seta cl_autoswitch 1 "automatically switch to newly picked up weapons if they are better than what you are carrying"
+
+alias autoswitch "set cl_autoswitch $1 ; cmd autoswitch $1"
+
 alias records "cmd records"
 alias rankings "cmd rankings"
 alias ladder "cmd ladder"
@@ -85,12 +96,20 @@ alias cointoss "sv_cmd cointoss"
 alias timeout "cmd timeout" //use this command to call a timeout
 alias timein "cmd timein" //use this command to resume the game before timeout is finished
 
+alias lsmaps "cmd lsmaps" // lists all maps on server (for vmap, suggestmap, vnextmap)
+alias lsnewmaps "cmd lsnewmaps" // lists all maps on server that do not yet have a record set (race/cts)
+
 alias team_red "cmd selectteam red; cmd join"
 alias team_blue "cmd selectteam blue; cmd join"
 alias team_pink "cmd selectteam pink; cmd join"
 alias team_yellow "cmd selectteam yellow; cmd join"
 alias team_auto "cmd selectteam auto; cmd join"
 
+alias sandbox "cmd g_sandbox $*"
+
+alias spec "cmd spectate"
+alias suggestmap "cmd suggestmap $1"
+
 
 // =========================================================
 //  sv_cmd (server console command) - server/gamecommand.qc
@@ -98,6 +117,8 @@ alias team_auto "cmd selectteam auto; cmd join"
 alias adminmsg "sv_cmd adminmsg $*"
 alias allready "sv_cmd allready"
 
+alias endmatch "timelimit -1"
+
 alias extendmatchtime "sv_cmd extendmatchtime"
 alias reducematchtime "sv_cmd reducematchtime"
 
@@ -148,14 +169,14 @@ alias unban "sv_cmd unban $*"     // usage: unban 3 (number from bans)
 // =========================
 //  voting - server/vote.qc
 // =========================
+set sv_vote_call 1 "Allow users to call a vote for the commands in sv_vote_commands"
+set sv_vote_change 1 "Allow voters to change their mind after already voting"
 set sv_vote_commands "restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss movetoteam_auto" "these commands can be voted"
 set sv_vote_only_commands ""
 set sv_vote_master_commands "movetoteam_red movetoteam_blue movetoteam_yellow movetoteam_pink" "maybe add kickban here (but then sv_vote_master 0)"
-set rcon_restricted_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick kickban \"sv_cmd bans\" \"sv_cmd unban *\" status \"sv_cmd teamstatus\" movetoteam_auto movetoteam_red movetoteam_blue movetoteam_yellow movetoteam_pink"
-set sv_vote_call 1     "users can call a vote for the above commands"
-set sv_vote_master 1   "users can call a vote to become master"
-set sv_vote_master_password "" "when set, users can use \"vlogin PASSWORD\" to log in as master"
-set sv_vote_change 1   "set to 1 to allow to change you vote/mind"
+set sv_vote_master 1   "Allows the use of the vote master system"
+set sv_vote_master_callable 1 "When set, users can use \"vmaster\" to call a vote to become master of voting commands"
+set sv_vote_master_password "" "when set, users can use \"vlogin PASSWORD\" to log in as master"
 set sv_vote_singlecount 0      "set to 1 to count votes once after timeout or to 0 to count with every vote"
 set sv_vote_timeout 30 "a vote will timeout after this many seconds"
 set sv_vote_wait 120   "a player can not call a vote again for this many seconds when his vote was not accepted"
@@ -164,6 +185,7 @@ set sv_vote_majority_factor 0.5     "which quotient of the PLAYERS constitute a majo
 set sv_vote_simple_majority_factor 0.666       "which quotient of the VOTERS constitute a majority too? (0 = off, otherwise it must be higher than or equal to sv_vote_majority_factor)"
 // when disabled, don't allow game type changes "note: set these two equal to JUST support simple majorities"
 set sv_vote_override_mostrecent 0
+
 alias vhelp "cmd vote help"
 alias vstatus "cmd vote status"
 alias vcall "cmd vote call $*"
@@ -185,3 +207,9 @@ alias vdomap "vdo gotomap $1"
 alias vdokick "vdo kick $*"
 alias vdokickban "vdo kickban $*"
 alias vdoend "vdo endmatch"
+
+// ======================
+//  rcon server commands
+// ======================
+rcon_secure 1
+set rcon_restricted_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick kickban \"sv_cmd bans\" \"sv_cmd unban *\" status \"sv_cmd teamstatus\" movetoteam_auto movetoteam_red movetoteam_blue movetoteam_yellow movetoteam_pink"