X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Ftracing.qc;h=4c9e0e34cf02ce30a1524cdaa7452e72acffaba2;hb=9dd43f196ca7bc0979f94a0fb0f87cdd82a951c7;hp=eec32a3e51ac0339bf9c764d992b15aa3b942b90;hpb=e4ac65ac2e770b795d1234ead3b2c25731f39bb3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index eec32a3e5..4c9e0e34c 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -1,9 +1,9 @@ #include "tracing.qh" -#include "../_all.qh" #include "accuracy.qh" #include "common.qh" #include "hitplot.qh" +#include "weaponsystem.qh" #include "../g_damage.qh" #include "../g_subs.qh" @@ -14,7 +14,7 @@ #include "../../common/weapons/all.qh" -#include "../../warpzonelib/common.qh" +#include "../../lib/warpzone/common.qh" // this function calculates w_shotorg and w_shotdir based on the weapon model // offset, trueaim and antilag, and won't put w_shotorg inside a wall. @@ -131,7 +131,7 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, vector s_forward, vector m if (snd != "") { - sound (ent, chan, snd, VOL_BASE, ATTN_NORM); + _sound (ent, chan, snd, VOL_BASE, ATTN_NORM); W_PlayStrengthSound(ent); } @@ -194,7 +194,7 @@ void W_SetupProjVelocity_Explicit(entity proj, vector dir, vector upDir, float p // ==================== void FireRailgunBullet (vector start, vector end, float bdamage, float bforce, float mindist, float maxdist, float halflifedist, float forcehalflifedist, int deathtype) -{ +{SELFPARAM(); vector hitloc, force, endpoint, dir; entity ent, endent; float endq3surfaceflags; @@ -287,7 +287,7 @@ void FireRailgunBullet (vector start, vector end, float bdamage, float bforce, f if(f <= 0) continue; - snd = W_Sound(strcat("nexwhoosh", ftos(floor(random() * 3) + 1))); + snd = SND(NEXWHOOSH_RANDOM()); if(!pseudoprojectile) pseudoprojectile = spawn(); // we need this so the sound uses the "entchannel4" volume @@ -345,7 +345,7 @@ void fireBullet_trace_callback(vector start, vector hit, vector end) } void fireBullet(vector start, vector dir, float spread, float max_solid_penetration, float damage, float force, float dtype, int tracereffects) -{ +{SELFPARAM(); vector end; dir = normalize(dir + randomvec() * spread);