X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fparticles.qc;h=6d2ddf87d5a431b3cf4c901b60881d868fb0e25b;hb=f2c50fe4e6218a0a1bb0ca078ee122c5ba6a238d;hp=a8dd10c69e14138129cc92603ec743f4d27c9467;hpb=e4715af2d04656465b64492ddf1c02ac1503ac43;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/particles.qc b/qcsrc/client/particles.qc index a8dd10c69..6d2ddf87d 100644 --- a/qcsrc/client/particles.qc +++ b/qcsrc/client/particles.qc @@ -1,15 +1,4 @@ -.int dphitcontentsmask; - -.int cnt; // effect number -.vector velocity; // particle velocity -.float waterlevel; // direction jitter -.int count; // count multiplier -.int impulse; // density -.string noise; // sound -.float atten; -.float volume; -.float absolute; // 1 = count per second is absolute, 2 = only spawn at toggle -.vector movedir; // trace direction +#include "particles.qh" void Draw_PointParticles() { @@ -188,7 +177,6 @@ void Ent_PointParticles() self.entremove = Ent_PointParticles_Remove; } -.float glow_color; // palette index void Draw_Rain() { te_particlerain(self.origin + self.mins, self.origin + self.maxs, self.velocity, floor(self.count * drawframetime + random()), self.glow_color); @@ -229,8 +217,8 @@ void Net_ReadVortexBeamParticle() { vector shotorg, endpos; float charge; - shotorg_x = ReadCoord(); shotorg_y = ReadCoord(); shotorg_z = ReadCoord(); - endpos_x = ReadCoord(); endpos_y = ReadCoord(); endpos_z = ReadCoord(); + shotorg.x = ReadCoord(); shotorg.y = ReadCoord(); shotorg.z = ReadCoord(); + endpos.x = ReadCoord(); endpos.y = ReadCoord(); endpos.z = ReadCoord(); charge = ReadByte() / 255.0; pointparticles(particleeffectnum("nex_muzzleflash"), shotorg, normalize(endpos - shotorg) * 1000, 1);