65 if (eff.eent_eff_trail)
77 || (!eff.eent_eff_trail && !eff_cnt))
81 if (eff_vel !=
'0 0 0')
85 if (eff_col_min !=
'0 0 0')
92 if (eff_col_max !=
'0 0 0'
93 && eff_col_min != eff_col_max)
101 if (eff_alpha_min >= 0)
106 if (eff_alpha_max >= 0
107 && eff_alpha_min != eff_alpha_max)
112 if (eff_alpha_fade >= 0)
115 eff_alpha_fade =
rint(
bound(0, eff_alpha_fade, 1) *
BITS(8));
122 WriteHeader(MSG_ONE, net_effect);
123 WriteByte(MSG_ONE, sf);
124 WriteRegistered(Effects, MSG_ONE, eff);
125 WriteVector(MSG_ONE, eff_loc);
128 if (sf & SF_EFF_VELOCITY)
129 WriteVector(MSG_ONE, eff_vel);
131 if (sf & SF_EFF_COLOR_MIN)
133 WriteByte(MSG_ONE, eff_col_min.x);
134 WriteByte(MSG_ONE, eff_col_min.y);
135 WriteByte(MSG_ONE, eff_col_min.z);
163 FOREACH(Effects, it.eent_eff_name == eff_name,
165 Send_Effect(it, eff_loc, eff_vel, eff_cnt);
169 __pointparticles(_particleeffectnum(eff_name), eff_loc, eff_vel, eff_cnt);
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
vector particles_colormin
vector particles_colormax
#define particleeffectnum(e)
void Send_Effect_Core(entity eff, vector eff_loc, vector eff_vel, int eff_cnt, vector eff_col_min, vector eff_col_max, float eff_alpha_min, float eff_alpha_max, float eff_alpha_fade, entity ignore)
void Send_Effect_(string eff_name, vector eff_loc, vector eff_vel, int eff_cnt)
void Send_Effect(entity eff, vector eff_loc, vector eff_vel, int eff_cnt)
const int SF_EFF_ALPHA_MIN
const int SF_EFF_COLOR_MIN
const int SF_EFF_VELOCITY
const int SF_EFF_COLOR_MAX
const int SF_EFF_ALPHA_MAX
WriteByte(chan, ent.angles.y/DEC_FACTOR)
#define FOREACH(list, cond, body)
#define NET_HANDLE(id, param)
#define ReadRegistered(r)
#define REGISTER_NET_TEMP(id)
void WarpZone_TrailParticles_WithMultiplier(entity own, float eff, vector org, vector end, float f, int boxflags)
if(frag_attacker.flagcarried)
#define IS_REAL_CLIENT(v)
#define FOREACH_CLIENT(cond, body)