X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fvortex.qc;h=bf179e374d3d24df2ddae085a84b33e124104765;hp=4e10a5839b9f4c318a49d32899b103f3437dfbbf;hb=19c09c8cfc6a4cb71c07e63bf739b7720ec6b0a0;hpb=9fcb19e1dfc3c9535a25591f2ea7b0586a04ac53 diff --git a/qcsrc/common/weapons/weapon/vortex.qc b/qcsrc/common/weapons/weapon/vortex.qc index 4e10a5839..bf179e374 100644 --- a/qcsrc/common/weapons/weapon/vortex.qc +++ b/qcsrc/common/weapons/weapon/vortex.qc @@ -151,8 +151,9 @@ void W_Vortex_Attack(Weapon thiswep, entity actor, .entity weaponentity, float i actor.vortex_lasthit = damage_goodhits; - //beam and muzzle flash done on client - W_MuzzleFlash(actor, weaponentity, EFFECT_VORTEX_MUZZLEFLASH, MDL_Null, w_shotorg, w_shotdir * 1000); + //beam done on client + vector v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos); + W_MuzzleFlash(thiswep, actor, weaponentity, w_shotorg, normalize(v - w_shotorg)); SendCSQCVortexBeamParticle(charge); W_DecreaseAmmo(thiswep, actor, myammo, weaponentity);