From 602d2af83e18a5a689180d34aba7c64369484c91 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 17 Feb 2012 14:56:26 +0100 Subject: [PATCH] sorry, clones should NOT set self.owner. Use self.enemy instead. --- qcsrc/server/cl_player.qc | 2 -- qcsrc/server/g_violence.qc | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 49b52555f..326d13615 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -198,8 +198,6 @@ void CopyBody(float keepvelocity) Drag_MoveDrag(oldself, self); - self.owner = oldself; - if(self.colormap <= maxclients && self.colormap > 0) self.colormap = 1024 + oldself.clientcolors; diff --git a/qcsrc/server/g_violence.qc b/qcsrc/server/g_violence.qc index cae5e3520..34d384c28 100644 --- a/qcsrc/server/g_violence.qc +++ b/qcsrc/server/g_violence.qc @@ -29,7 +29,7 @@ void Violence_GibSplash_At(vector org, vector dir, float type, float amount, ent // if this is a copied dead body, send the num of its player instead // TODO: remove this field, read from model txt files if(self.classname == "body") - e.team = num_for_edict(self.owner); + e.team = num_for_edict(self.enemy); else e.team = num_for_edict(self); -- 2.39.2