#ifdef CSQC
NET_HANDLE(net_effect, bool isNew)
{
- int net_name = (Effects_COUNT >= 255) ? ReadShort() : ReadByte();
+ int net_name = (REGISTRY_COUNT(Effects) >= 255) ? ReadShort() : ReadByte();
- entity eff = Effects_from(net_name);
+ entity eff = REGISTRY_GET(Effects, net_name);
vector vel = '0 0 0';
int eff_cnt = 1;
int channel = MSG_ONE;
msg_entity = client;
WriteHeader(channel, net_effect);
- (Effects_COUNT >= 255)
+ (REGISTRY_COUNT(Effects) >= 255)
? WriteShort(channel, this.m_id)
: WriteByte(channel, this.m_id);
WriteVector(channel, this.eent_net_location);
Send_Effect(it, eff_loc, eff_vel, eff_cnt);
return;
});
- // revert to engine handling
+ // revert to engine handling TODO: send the effect name and draw it on the client side? not as light on networking, but resolves the use of server side effects
__pointparticles(_particleeffectnum(eff_name), eff_loc, eff_vel, eff_cnt);
}
#endif