X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fpointparticles.qc;h=f303ca9f2bfefa88f94cc49d611d88759128fca8;hb=ef74e1ba8e890befb4a4892a96d244a66c05fd48;hp=9b32371dbeaa5af43a94e922bc179216d6f267c7;hpb=1e85850478a0174700ab365d6a642a2a420d78f8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/pointparticles.qc b/qcsrc/common/triggers/func/pointparticles.qc index 9b32371db..f303ca9f2 100644 --- a/qcsrc/common/triggers/func/pointparticles.qc +++ b/qcsrc/common/triggers/func/pointparticles.qc @@ -6,7 +6,7 @@ // NOTE: also contains func_sparks float pointparticles_SendEntity(entity to, float fl) -{ +{SELFPARAM(); WriteByte(MSG_ENTITY, ENT_CLIENT_POINTPARTICLES); // optional features to save space @@ -89,13 +89,13 @@ float pointparticles_SendEntity(entity to, float fl) } void pointparticles_use() -{ +{SELFPARAM(); self.state = !self.state; self.SendFlags |= 2; } void pointparticles_think() -{ +{SELFPARAM(); if(self.origin != self.oldorigin) { self.SendFlags |= 4; @@ -105,7 +105,7 @@ void pointparticles_think() } void pointparticles_reset() -{ +{SELFPARAM(); if(self.spawnflags & 1) self.state = 1; else @@ -113,7 +113,7 @@ void pointparticles_reset() } void spawnfunc_func_pointparticles() -{ +{SELFPARAM(); if(self.model != "") setmodel(self, self.model); if(self.noise != "") @@ -141,7 +141,7 @@ void spawnfunc_func_pointparticles() setsize(self, '0 0 0', self.maxs - self.mins); } if(!self.cnt) - self.cnt = particleeffectnum(self.mdl); + self.cnt = _particleeffectnum(self.mdl); Net_LinkEntity(self, (self.spawnflags & 4), 0, pointparticles_SendEntity); @@ -158,7 +158,7 @@ void spawnfunc_func_pointparticles() } 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 @@ -184,7 +184,7 @@ void spawnfunc_func_sparks() #elif defined(CSQC) void Draw_PointParticles() -{ +{SELFPARAM(); float n, i, fail; vector p; vector sz; @@ -244,7 +244,7 @@ void Draw_PointParticles() } void Ent_PointParticles_Remove() -{ +{SELFPARAM(); if(self.noise) strunzone(self.noise); self.noise = string_null; @@ -254,7 +254,7 @@ void Ent_PointParticles_Remove() } void Ent_PointParticles() -{ +{SELFPARAM(); float i; vector v; int f = ReadByte();