CSQCMODEL_AUTOUPDATE();
self.nextthink = time;
}
-entity CopyBody(float keepvelocity)
+void CopyBody(float keepvelocity)
{
- entity ret;
entity oldself;
if (self.effects & EF_NODRAW)
- return world;
+ return;
oldself = self;
- ret = self = spawn();
+ self = spawn();
self.enemy = oldself;
self.lip = oldself.lip;
self.colormap = oldself.colormap;
Drag_MoveDrag(oldself, self);
- self.owner = oldself;
+ if(self.colormap <= maxclients && self.colormap > 0)
+ self.colormap = 1024 + oldself.clientcolors;
CSQCMODEL_AUTOINIT();
self.CopyBody_nextthink = oldself.nextthink;
self.think = CopyBody_Think;
self = oldself;
-
- return ret;
}
float player_getspecies()
float valid_damage_for_weaponstats;
float excess;
- if((g_arena && numspawned < 2) || (g_ca && !ca_teams_ok) && !inWarmupStage)
+ if((g_arena && numspawned < 2) || (g_ca && allowed_to_spawn) && !inWarmupStage)
return;
dh = max(self.health, 0);
else
DropFlag(self.flagcarried, world, attacker);
}
- if(self.ballcarried && g_nexball)
- DropBall(self.ballcarried, self.origin, self.velocity);
Portal_ClearAllLater(self);
if(clienttype(self) == CLIENTTYPE_REAL)