From ebe2d511a7411a48e941a98fc36db97c6164ed85 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Tue, 30 Nov 2010 13:30:29 +0200 Subject: [PATCH] just use the old vyes/vno aliases when binding, but let them instead execute cl_cmd vyes and vno. CSQC code then either sets the uid2name cvar, or executes "cmd vote yes/no" --- defaultXonotic.cfg | 8 ++++---- keybinds.txt | 5 ++--- qcsrc/client/Main.qc | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index afcb1a9c6..34b8bf356 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -1058,8 +1058,8 @@ alias vstop "cmd vote stop" alias vmaster "cmd vote master" alias vlogin "cmd vote login $*" alias vdo "cmd vote do $*" -alias vyes "cmd vote yes" -alias vno "cmd vote no" +alias vyes "cl_cmd vyes" +alias vno "cl_cmd vno" alias vdontcare "cmd vote dontcare" alias vabstain "cmd vote abstain" @@ -1075,8 +1075,8 @@ alias vdoend "vdo endmatch" 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) -bind F1 cl_cmd vyes -bind F2 cl_cmd vno +bind F1 vyes +bind F2 vno //used for spectate/observer mode alias spec "cmd spectate" diff --git a/keybinds.txt b/keybinds.txt index 1e4a74d66..453e09165 100644 --- a/keybinds.txt +++ b/keybinds.txt @@ -31,15 +31,14 @@ "" "View" "+zoom" "zoom" "+showscores" "show scores" -"+showaccuracy" "show accuracy" "screenshot" "screen shot" "" "" "" "Communicate" "messagemode" "public chat" "messagemode2" "team chat" "+con_chat_maximize" "show chat history" -"cl_cmd vyes" "vote YES" -"cl_cmd vno" "vote NO" +"vyes" "vote YES" +"vno" "vote NO" "ready" "ready" "" "" "" "Client" diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index de87c0d74..24b230c84 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -619,7 +619,7 @@ void GameCommand(string msg) } else { - localcmd("vyes\n"); + localcmd("cmd vote yes\n"); } } else if(cmd == "vno") @@ -633,7 +633,7 @@ void GameCommand(string msg) } else { - localcmd("vno\n"); + localcmd("cmd vote no\n"); } } -- 2.39.2