X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fmutator_touchexplode.qc;h=3c0e2706f8d8f52c16406de17ff03e86b16604ee;hb=6cc2d1aa115907d16ae84fb07c3fe6c3329cd9b5;hp=5f02a8aba2f38ffd8fb783291d06a02fa7db70bc;hpb=094f9682a7e8258a383ea9574dc7144eaf7ceecc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/mutator_touchexplode.qc b/qcsrc/server/mutators/mutator_touchexplode.qc index 5f02a8aba..3c0e2706f 100644 --- a/qcsrc/server/mutators/mutator_touchexplode.qc +++ b/qcsrc/server/mutators/mutator_touchexplode.qc @@ -1,13 +1,17 @@ +#include "../_all.qh" + +#include "mutator.qh" + .float touchexplode_time; void PlayerTouchExplode(entity p1, entity p2) { vector org; org = (p1.origin + p2.origin) * 0.5; - org_z += (p1.mins_z + p2.mins_z) * 0.5; + org.z += (p1.mins.z + p2.mins.z) * 0.5; - sound(self, CH_TRIGGER, "weapons/grenade_impact.wav", VOL_BASE, ATTEN_NORM); - pointparticles(particleeffectnum("explosion_small"), org, '0 0 0', 1); + sound(self, CH_TRIGGER, W_Sound("grenade_impact"), VOL_BASE, ATTEN_NORM); + Send_Effect(EFFECT_EXPLOSION_SMALL, org, '0 0 0', 1); entity e; e = spawn(); @@ -37,12 +41,12 @@ MUTATOR_HOOKFUNCTION(touchexplode_PlayerThink) } } - return FALSE; + return false; } MUTATOR_DEFINITION(mutator_touchexplode) { MUTATOR_HOOK(PlayerPreThink, touchexplode_PlayerThink, CBC_ORDER_ANY); - return FALSE; + return false; }