WriteShort(chan, sf);
FOREACH(EntCSProps, sf & BIT(it.m_id),
{
- it.m_set(this, player);
it.m_send(chan, this);
});
return true;
entity player = this.owner;
FOREACH(EntCSProps, it.m_check(this, player),
{
+ it.m_set(this, player);
this.SendFlags |= BIT(it.m_id);
});
setorigin(this, this.origin); // relink
setthink(e, entcs_think);
e.nextthink = time;
Net_LinkEntity(e, false, 0, entcs_send);
+ if (!IS_REAL_CLIENT(player)) return;
+ FOREACH_CLIENT(true, {
+ assert(CS(it).entcs);
+ _entcs_send(CS(it).entcs, msg_entity = player, BITS(23), MSG_ONE);
+ });
}
void entcs_detach(entity player)