From: Rudolf Polzer Date: Tue, 26 Feb 2013 15:57:34 +0000 (+0100) Subject: add a $is_dedicated cvar X-Git-Tag: xonotic-v0.7.0~62^2~27 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=3e496a303680d4b4bb7605162e12bedd226218e1;p=xonotic%2Fxonotic-data.pk3dir.git add a $is_dedicated cvar --- diff --git a/commands.cfg b/commands.cfg index 44fa671bd..413953df5 100644 --- a/commands.cfg +++ b/commands.cfg @@ -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 $${* !}"