-.float dphitcontentsmask;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "bgmscript.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
-.float cnt; // effect number
+.int dphitcontentsmask;
+
+.int cnt; // effect number
.vector velocity; // particle velocity
.float waterlevel; // direction jitter
-.float count; // count multiplier
-.float impulse; // density
+.int count; // count multiplier
+.int impulse; // density
.string noise; // sound
.float atten;
.float volume;
for(i = random(); i <= n && fail <= 64*n; ++i)
{
p = o + self.mins;
- p_x += random() * sz_x;
- p_y += random() * sz_y;
- p_z += random() * sz_z;
+ p.x += random() * sz.x;
+ p.y += random() * sz.y;
+ p.z += random() * sz.z;
if(WarpZoneLib_BoxTouchesBrush(p, p, self, world))
{
if(self.movedir != '0 0 0')
void Ent_PointParticles()
{
- float f, i;
+ float i;
vector v;
- f = ReadByte();
+ int f = ReadByte();
if(f & 2)
{
i = ReadCoord(); // density (<0: point, >0: volume)
if(!self.absolute)
{
v = self.maxs - self.mins;
- self.impulse *= -v_x * v_y * v_z / 262144; // relative: particles per 64^3 cube
+ self.impulse *= -v.x * v.y * v.z / 262144; // relative: particles per 64^3 cube
}
}
charge = sqrt(charge); // divide evenly among trail spacing and alpha
particles_alphamin = particles_alphamax = particles_fade = charge;
- if (autocvar_cl_particles_oldnexbeam && (getstati(STAT_ALLOW_OLDNEXBEAM) || isdemo()))
+ if (autocvar_cl_particles_oldvortexbeam && (getstati(STAT_ALLOW_OLDVORTEXBEAM) || isdemo()))
WarpZone_TrailParticles_WithMultiplier(world, particleeffectnum("TE_TEI_G3"), shotorg, endpos, 1, PARTICLES_USEALPHA | PARTICLES_USEFADE);
else
WarpZone_TrailParticles_WithMultiplier(world, particleeffectnum("nex_beam"), shotorg, endpos, 1, PARTICLES_USEALPHA | PARTICLES_USEFADE);