X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fgibs.qc;h=6b27d0a41a0d2349a7f879d78c76ca426c612934;hb=923e5ae945f2ef5eada538c6f7b6cdf52d1695d9;hp=5c4c338f155c5e91ad7272c5556de0c80f10c486;hpb=120ad19fdf46b7096a0f90b940e590f1909ad22c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 5c4c338f1..6b27d0a41 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -1,11 +1,7 @@ #include "gibs.qh" -#include "_all.qh" #include "rubble.qh" - -#include "../common/constants.qh" #include "../common/movetypes/movetypes.qh" -#include "../common/util.qh" .float scale; .float alpha; @@ -65,7 +61,7 @@ void new_te_bloodshower (int ef, vector org, float explosionspeed, int howmany) float i, pmod; pmod = autocvar_cl_particles_quality; for (i = 0; i < 50 * pmod; ++i) - pointparticles(ef, org, randomvec() * explosionspeed, howmany / 50); + __pointparticles(ef, org, randomvec() * explosionspeed, howmany / 50); } void SUB_RemoveOnNoImpact() @@ -86,13 +82,13 @@ void Gib_Touch() if(!self.silent) sound(self, CH_PAIN, SND_GIB_SPLAT_RANDOM(), VOL_BASE, ATTEN_NORM); - pointparticles(_particleeffectnum(strcat(species_prefix(self.cnt), "blood")), self.origin + '0 0 1', '0 0 30', 10); + __pointparticles(_particleeffectnum(strcat(species_prefix(self.cnt), "blood")), self.origin + '0 0 1', '0 0 30', 10); Gib_Delete(); } -void Gib_Draw() -{SELFPARAM(); +void Gib_Draw(entity this) +{ vector oldorg; oldorg = self.origin; @@ -102,9 +98,9 @@ void Gib_Draw() if(self.touch == Gib_Touch) // don't do this for the "chunk" thingie... // TODO somehow make it spray in a direction dependent on self.angles - trailparticles(self, _particleeffectnum(strcat(species_prefix(self.cnt), EFFECT_TR_SLIGHTBLOOD.eent_eff_name)), oldorg, self.origin); + __trailparticles(self, _particleeffectnum(strcat(species_prefix(self.cnt), EFFECT_TR_SLIGHTBLOOD.eent_eff_name)), oldorg, self.origin); else - trailparticles(self, _particleeffectnum(strcat(species_prefix(self.cnt), EFFECT_TR_BLOOD.eent_eff_name)), oldorg, self.origin); + __trailparticles(self, _particleeffectnum(strcat(species_prefix(self.cnt), EFFECT_TR_BLOOD.eent_eff_name)), oldorg, self.origin); self.renderflags = 0; @@ -255,17 +251,17 @@ void Ent_GibSplash(bool isNew) } break; case 0x02: - pointparticles(_particleeffectnum(strcat(specstr, "blood")), org, vel, amount * 16); + __pointparticles(_particleeffectnum(strcat(specstr, "blood")), org, vel, amount * 16); break; case 0x03: if(prandom() < amount) TossGib ("models/gibs/chunk.mdl", org, org, vel, prandomvec() * (prandom() * 30 + 20), specnum, 1, issilent); // TODO maybe adjust to more randomization? break; case 0x81: - pointparticles(_particleeffectnum(strcat(gentle_prefix, "damage_dissolve")), org, vel, amount); + __pointparticles(_particleeffectnum(strcat(gentle_prefix, "damage_dissolve")), org, vel, amount); break; case 0x82: - pointparticles(_particleeffectnum(strcat(gentle_prefix, "damage_hit")), org, vel, amount * 16); + __pointparticles(_particleeffectnum(strcat(gentle_prefix, "damage_hit")), org, vel, amount * 16); break; case 0x83: // no gibs in gentle mode, sorry