CSQCMODEL_AUTOUPDATE();
self.nextthink = time;
}
-void CopyBody(float keepvelocity)
+entity CopyBody(float keepvelocity)
{
+ entity ret;
entity oldself;
if (self.effects & EF_NODRAW)
- return;
+ return world;
oldself = self;
- self = spawn();
+ ret = self = spawn();
self.enemy = oldself;
self.lip = oldself.lip;
self.colormap = oldself.colormap;
self.owner = oldself;
- if(self.colormap <= maxclients && self.colormap > 0)
- self.colormap = 1024 + oldself.clientcolors;
-
CSQCMODEL_AUTOINIT();
self.CopyBody_nextthink = oldself.nextthink;
self.CopyBody_think = oldself.think;
self.think = CopyBody_Think;
self = oldself;
+
+ return ret;
}
float player_getspecies()