From e8695be3275ff9533216d8bc6c37897c65db3e48 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 4 Apr 2011 00:33:12 +0300 Subject: [PATCH] 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. --- qcsrc/server/g_violence.qc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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); -- 2.39.2