]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_violence.qc
Fix some things in the damage code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_violence.qc
index 8f5f55f2f01b94a541673832a61eeb35f31d7f17..a006677bbe77e0b88d4d2f7724ae67a54816f766 100644 (file)
@@ -50,9 +50,6 @@ void Violence_GibSplash(entity source, float type, float amount, entity attacker
 
 float Violence_DamageEffect_SendEntity(entity to, float sf)
 {
-       if not(to.cvar_cl_damageeffect)
-               return FALSE; // if the client doesn't have the effect enabled, don't send to him and waste bandwidth
-
        WriteByte(MSG_ENTITY, ENT_CLIENT_DAMAGEEFFECT);
        WriteByte(MSG_ENTITY, self.cnt); // damage amount
        WriteByte(MSG_ENTITY, self.weapon); // damage weapon