]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
I was wrong. Send the ent num of the player for dead bodies for both gib splashes...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Apr 2011 21:59:13 +0000 (00:59 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Apr 2011 21:59:13 +0000 (00:59 +0300)
qcsrc/server/g_violence.qc

index b7a417b4022b7edfe85a7ef98ca7338157382853..6db09c7ed6484702382f7b5964543775980c7ec0 100644 (file)
@@ -88,7 +88,15 @@ void Violence_DamageEffect(entity pl, float type)
        e.classname = "weapondamage";
        e.cnt = type;
        e.state |= 8 * pl.species; // gib type, ranges from 0 to 15
+
        e.team = num_for_edict(pl);
+
+       // if this is a copied dead body, send the num of its player instead
+       if(pl.classname == "body")
+               e.team = num_for_edict(pl.owner);
+       else
+               e.team = num_for_edict(pl);
+
        setorigin(e, pl.origin);
 
        Net_LinkEntity(e, FALSE, 0.2, Violence_DamageEffect_SendEntity);