]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Skip the effect if the lifetime or tick cvars are disabled.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 23:10:43 +0000 (02:10 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 23:10:43 +0000 (02:10 +0300)
qcsrc/server/g_violence.qc

index 922143dc3aa9395d52b4767cc325c55bcbc2f4fa..fc19f92bedd606721d75286444187fc9ae03df7c 100644 (file)
@@ -84,6 +84,8 @@ void Violence_DamageEffect_SetRepeat(entity pl, float damage, float type)
        // return if gentle mode is enabled or the damage was not caused by a weapon
        if(sv_gentle || !type)
                return;
+       if not(autocvar_sv_damageeffect_tick && autocvar_sv_damageeffect_lifetime)
+               return;
 
        // if a repeater doesn't exist, spawn one, else update the existing one
        if(pl.damageeffect_repeater == world)