]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Only show "don't digest" / "don't kick" team messages when digestion and kicking...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 16:16:58 +0000 (19:16 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 16:16:58 +0000 (19:16 +0300)
data/qcsrc/server/vore.qc

index 8a9dc2fb76b0e792110399ab3b76ddb894f438b0..d838c0d7791c8e949cf428d3197901d54d68ea9e 100644 (file)
@@ -201,8 +201,10 @@ void Vore_Swallow(entity e)
 \r
        if(teams_matter && e.team == e.predator.team)\r
        {\r
-               centerprint(e, "^3You have been swallowed by a team mate, don't kick!");\r
-               centerprint(e.predator, "^3You have swallowed a team mate, use caution!");\r
+               if(cvar("g_vore_kick"))\r
+                       centerprint(e, "^3You have been swallowed by a team mate, don't kick!");\r
+               if(cvar("g_vore_digestion"))\r
+                       centerprint(e.predator, "^3You have swallowed a team mate, don't digest!");\r
        }\r
 \r
        PlayerSound(e.predator, playersound_swallow, CHAN_PAIN, VOICETYPE_PLAYERSOUND);\r