]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add a $is_dedicated cvar
authorRudolf Polzer <divverent@xonotic.org>
Tue, 26 Feb 2013 15:57:34 +0000 (16:57 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 26 Feb 2013 15:57:34 +0000 (16:57 +0100)
commands.cfg

index 44fa671bd7f88e4ace9f1c4be2cf0e3929ad1542..413953df5242e03cf5fdc934e237d89860f2cb4c 100644 (file)
@@ -11,6 +11,10 @@ alias if_dedicated "${* asis}"
 _if_dedicated alias if_client ""
 if_client alias if_dedicated ""
 
+// for easy access by QC
+if_dedicated set is_dedicated 1
+if_client    set is_dedicated 0
+
 if_dedicated "alias" qc_cmd_sv     "sv_cmd $$*"
 if_client    "alias" qc_cmd_sv     "sv_cmd $$*"
 // if_client    "alias" qc_cmd_sv     "echo This command only works on servers: sv_cmd $${* !}"