From: Mircea Kitsune Date: Sun, 3 Apr 2011 21:33:12 +0000 (+0300) Subject: Undo one of my changes with ent num. I think it's best for our code if the body entnu... X-Git-Tag: xonotic-v0.6.0~110^2^2~138 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e8695be3275ff9533216d8bc6c37897c65db3e48;p=xonotic%2Fxonotic-data.pk3dir.git Undo one of my changes with ent num. I think it's best for our code if the body entnum is sent as it is, as our own damaged body can be shown to us after respawn. --- diff --git a/qcsrc/server/g_violence.qc b/qcsrc/server/g_violence.qc index 82b521364..cee0c28a6 100644 --- a/qcsrc/server/g_violence.qc +++ b/qcsrc/server/g_violence.qc @@ -82,13 +82,7 @@ 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 - - // if this is a dead body, send the num of its player - if(pl.classname == "body") - e.team = num_for_edict(pl.owner); - else - e.team = num_for_edict(pl); - + e.team = num_for_edict(pl); setorigin(e, pl.origin); Net_LinkEntity(e, FALSE, 0.2, Violence_DamageEffect_SendEntity);