From 1dd9d6a84e00ec093fde8f744fa2aea55d43d516 Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 11 Dec 2011 04:06:33 -0500 Subject: [PATCH] ALSO add all of the client-to-server command aliases to commands.cfg --- commands.cfg | 53 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/commands.cfg b/commands.cfg index e24c349cd..506545963 100644 --- a/commands.cfg +++ b/commands.cfg @@ -27,6 +27,9 @@ if_client alias who "cmd who" if_dedicated alias who "sv_cmd who" alias w who +if_client alias vote "cmd vote ${* ?}" +if_dedicated alias vote "sv_cmd vote ${* ?}" + alias g_hitplots_add "qc_cmd rpn /g_hitplots_individuals g_hitplots_individuals ${1 !} union def" alias g_hitplots_remove "qc_cmd rpn /g_hitplots_individuals g_hitplots_individuals ${1 !} difference def" @@ -75,7 +78,7 @@ alias scoreboard_columns_set "" // aliased later alias scoreboard_columns_help "cl_cmd scoreboard_columns_help ${* ?}" -// =========================================================== +// =========================================================== // TODO: FIGURE OUT ANY CONFLICTS WITH NORMAL COMMANDS // cmd (client-to-server command) - server/clientcommands.qc // =========================================================== set sv_clientcommand_antispam_time 1 "Amount of seconds after a command before another command can be called again without being considered spam. (Use -1 for no antispam limit)" @@ -85,19 +88,38 @@ seta sv_status_privacy 1 "hide IP addresses from \"status\" and \"who\" replies 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 autoswitch "cmd autoswitch ${* ?}" +alias checkfail "cmd checkfail ${* ?}" +alias clientversion "cmd clientversion ${* ?}" +alias cvar_changes "cmd cvar_changes" +alias cvar_purechanges "cmd cvar_purechanges" +alias getmapvotepic "cmd getmapvotepic ${* ?}" +alias info "cmd info ${* ?}" +alias join "cmd join" alias ladder "cmd ladder" - +alias lsmaps "cmd lsmaps" +alias lsnewmaps "cmd lsnewmaps" +alias maplist "cmd maplist" +alias rankings "cmd rankings" alias ready "cmd ready" -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 records "cmd records" +alias reportcvar "cmd reportcvar ${* ?}" +alias say "cmd say ${* ?}" +alias say_team "cmd say_team ${* ?}" +alias selectteam "cmd selectteam ${* ?}" +alias sentcvar "cmd sentcvar ${* ?}" +alias spectate "cmd spectate" +alias suggestmap "cmd suggestmap ${* ?}" +alias teamstatus "cmd teamstatus" +alias tell "cmd tell ${* ?}" +alias timein "cmd timein" +alias timeout "cmd timeout" +alias voice "cmd voice ${* ?}" +alias vote "cmd vote ${* ?}" +alias who "cmd who" + +// other aliases for client-to-server commands +alias autoswitch "set cl_autoswitch ${1 ?} ; cmd autoswitch ${1 ?}" // todo alias team_red "cmd selectteam red; cmd join" alias team_blue "cmd selectteam blue; cmd join" @@ -105,10 +127,10 @@ 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 ?}" + +// mutator aliases +alias sandbox "cmd g_sandbox ${* ?}" // ========================================================= @@ -154,7 +176,6 @@ alias time "sv_cmd time" alias trace "sv_cmd trace ${* ?}" alias unlockteams "sv_cmd unlockteams" alias warp "sv_cmd warp ${* ?}" -alias vote "sv_cmd vote ${* ?}" // other aliases for server commands alias endmatch "timelimit -1" -- 2.39.2