From: Mircea Kitsune Date: Sun, 3 Apr 2011 21:59:13 +0000 (+0300) Subject: I was wrong. Send the ent num of the player for dead bodies for both gib splashes... X-Git-Tag: xonotic-v0.6.0~110^2^2~135 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=add2dffdf9178ba7f29ce8168718700734dfef1e;p=xonotic%2Fxonotic-data.pk3dir.git I was wrong. Send the ent num of the player for dead bodies for both gib splashes and my damage effect. --- diff --git a/qcsrc/server/g_violence.qc b/qcsrc/server/g_violence.qc index b7a417b40..6db09c7ed 100644 --- a/qcsrc/server/g_violence.qc +++ b/qcsrc/server/g_violence.qc @@ -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);