just use the old vyes/vno aliases when binding, but let them instead execute cl_cmd...
authorFruitieX <fruitiex@gmail.com>
Tue, 30 Nov 2010 11:30:29 +0000 (13:30 +0200)
committerFruitieX <fruitiex@gmail.com>
Tue, 30 Nov 2010 11:30:29 +0000 (13:30 +0200)
defaultXonotic.cfg
keybinds.txt
qcsrc/client/Main.qc

index afcb1a9..34b8bf3 100644 (file)
@@ -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"
index 1e4a74d..453e091 100644 (file)
 ""                                      "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"
index de87c0d..24b230c 100644 (file)
@@ -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");
         }
     }