// NOTE: also contains func_sparks
float pointparticles_SendEntity(entity to, float fl)
-{
+{SELFPARAM();
WriteByte(MSG_ENTITY, ENT_CLIENT_POINTPARTICLES);
// optional features to save space
}
void pointparticles_use()
-{
+{SELFPARAM();
self.state = !self.state;
self.SendFlags |= 2;
}
void pointparticles_think()
-{
+{SELFPARAM();
if(self.origin != self.oldorigin)
{
self.SendFlags |= 4;
}
void pointparticles_reset()
-{
+{SELFPARAM();
if(self.spawnflags & 1)
self.state = 1;
else
}
void spawnfunc_func_pointparticles()
-{
+{SELFPARAM();
if(self.model != "")
setmodel(self, self.model);
if(self.noise != "")
}
void spawnfunc_func_sparks()
-{
+{SELFPARAM();
// self.cnt is the amount of sparks that one burst will spawn
if(self.cnt < 1) {
self.cnt = 25.0; // nice default value
#elif defined(CSQC)
void Draw_PointParticles()
-{
+{SELFPARAM();
float n, i, fail;
vector p;
vector sz;
}
void Ent_PointParticles_Remove()
-{
+{SELFPARAM();
if(self.noise)
strunzone(self.noise);
self.noise = string_null;
}
void Ent_PointParticles()
-{
+{SELFPARAM();
float i;
vector v;
int f = ReadByte();