]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
another debug cvar
authorRudolf Polzer <divverent@xonotic.org>
Fri, 28 Oct 2011 20:54:40 +0000 (22:54 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 28 Oct 2011 20:54:40 +0000 (22:54 +0200)
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cl_client.qc

index c96b0b13418b678bca4602fdfcb4174acdd19dd5..19224c8c5a3778cd2f883b05a52993ddd9a91ced 100644 (file)
@@ -1888,6 +1888,7 @@ set _campaign_name ""
 
 // debug
 set _independent_players 0 "DO NOT TOUCH"
+set _notarget 0 "NO, REALLY, DON'T"
 
 // define some engine cvars that we need even on dedicated server
 set r_showbboxes 0
index 3f8d6caf0d6d9e486988e30dcbe1b7b3325398cc..21f21141e0e9871402d736805c23cd8416ca45b3 100644 (file)
@@ -1,3 +1,4 @@
+float autocvar__notarget;
 float autocvar__independent_players;
 float autocvar__campaign_index;
 string autocvar__campaign_name;
index 657334fe870a7b6cb681db2bbb255c731686c0d2..7445c6b38b0cf5f2c4f4f43ea47ea3cf11ab1efc 100644 (file)
@@ -915,6 +915,8 @@ void PutClientInServer (void)
                if(INDEPENDENT_PLAYERS)
                        MAKE_INDEPENDENT_PLAYER(self);
                self.flags = FL_CLIENT;
+               if(autocvar__notarget)
+                       self.flags |= FL_NOTARGET;
                self.takedamage = DAMAGE_AIM;
                if(g_minstagib)
                        self.effects = EF_FULLBRIGHT;