if(!sound_allowed(MSG_BROADCAST, dmgowner))
deathtype |= 0x8000;
- e = new_pure(damageinfo);
+ e = new(damageinfo);
// origin is just data to be sent
//setorigin(e, org);
e.origin = org;
void entcs_attach(entity player)
{
- entity e = CS(player).entcs = new_pure(entcs_sender);
+ entity e = CS(player).entcs = new(entcs_sender);
e.owner = player;
setthink(e, entcs_think);
e.nextthink = time;
void wepent_link(entity wep)
{
- entity e = new_pure(wepent_sender);
+ entity e = new(wepent_sender);
e.owner = wep;
setthink(e, wepent_think);
e.nextthink = time;
.vector origin;
+// entities can be labeled pure if they aren't linked to the world
+// that is, if they never call setorigin / setsize / setmodel (/ Net_LinkEntity)
+
.bool pure_data;
#define is_pure(e) ((e).pure_data)
/** @deprecated use new_pure or NEW(class) */
switch(s)
{
case "weaponentity":
+ case "eliminatedPlayers":
case "exteriorweaponentity":
+ case "entcs_sender":
+ case "damageinfo":
case "sprite_waypoint":
case "waypoint":
case "spawnfunc":
case "weaponchild":
case "chatbubbleentity":
case "buff_model":
+ case "wepent_sender":
//case "net_linked": // actually some real entities are linked without classname, fail
case "":
return true;
backtrace("Can't spawn eliminatedPlayers again!");
return;
}
- Net_LinkEntity(eliminatedPlayers = new_pure(eliminatedPlayers), false, 0, EliminatedPlayers_SendEntity);
+ Net_LinkEntity(eliminatedPlayers = new(eliminatedPlayers), false, 0, EliminatedPlayers_SendEntity);
eliminatedPlayers.isEliminated = isEliminated_func;
}