X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Ftracing.qc;fp=qcsrc%2Fserver%2Fweapons%2Ftracing.qc;h=4db498b4a0be5fafbca77a6e692e194f294ecd44;hp=b82095a69971beaa49e6be3a86e07f2e760dc71a;hb=f64d037f9d2f38d874422e04d6147c1876a1c829;hpb=a0fd208362840417b2e12a61a002983cbd2aea07 diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index b82095a699..4db498b4a0 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -1,26 +1,22 @@ #include "tracing.qh" -#include - -#include "accuracy.qh" -#include "common.qh" -#include "hitplot.qh" -#include "weaponsystem.qh" - -#include "../damage.qh" -#include -#include -#include - #include +#include +#include #include +#include #include - #include #include -#include - #include +#include +#include +#include +#include +#include +#include +#include +#include // 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. @@ -298,7 +294,7 @@ void FireRailgunBullet (entity this, .entity weaponentity, vector start, vector vector beampos = start + dir * bound(0, (it.origin - start) * dir, length); if(!pseudoprojectile) - pseudoprojectile = spawn(); // we need this so the sound uses the "entchannel4" volume + pseudoprojectile = new(pseudoprojectile); // we need this so the sound uses the "entchannel4" volume msg_entity = it; // we want this to be very loud when close but fall off quickly -> using max base volume and high attenuation