sorry, clones should NOT set self.owner. Use self.enemy instead.
authorRudolf Polzer <divverent@alientrap.org>
Fri, 17 Feb 2012 13:56:26 +0000 (14:56 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 17 Feb 2012 13:56:26 +0000 (14:56 +0100)
qcsrc/server/cl_player.qc
qcsrc/server/g_violence.qc

index 49b5255..326d136 100644 (file)
@@ -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;
 
index cae5e35..34d384c 100644 (file)
@@ -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);