From: Samual Lenks Date: Thu, 27 Feb 2014 03:15:05 +0000 (-0500) Subject: Fix precaching on server for Arc attack sound X-Git-Tag: xonotic-v0.8.0~152^2~44 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7a12b0b4d547e8ad8c71b264b8c3b9bf09eb089a;p=xonotic%2Fxonotic-data.pk3dir.git Fix precaching on server for Arc attack sound --- diff --git a/qcsrc/common/weapons/w_arc.qc b/qcsrc/common/weapons/w_arc.qc index 94e4d50b8..48b16732d 100644 --- a/qcsrc/common/weapons/w_arc.qc +++ b/qcsrc/common/weapons/w_arc.qc @@ -98,10 +98,7 @@ float W_Arc_Beam_Send(entity to, float sf) // it always figures this information out for itself with csqc code. // - Spectating the owner also truncates this information. float drawlocal = ((to == self.owner) || ((to.enemy == self.owner) && IS_SPEC(to))); - if(drawlocal) - { - sf &= ~ARC_SF_LOCALMASK; - } + if(drawlocal) { sf &= ~ARC_SF_LOCALMASK; } WriteByte(MSG_ENTITY, sf); @@ -596,9 +593,7 @@ float W_Arc(float req) precache_model("models/weapons/g_arc.md3"); precache_model("models/weapons/v_arc.md3"); precache_model("models/weapons/h_arc.iqm"); - //precache_sound("weapons/arc_fire.wav"); - //precache_sound("weapons/arc_fire2.wav"); - //precache_sound("weapons/arc_impact.wav"); + precache_sound("weapons/lgbeam_fire.wav"); if(!arc_shotorigin[0]) { arc_shotorigin[0] = shotorg_adjust_values(CL_Weapon_GetShotOrg(WEP_ARC), FALSE, FALSE, 1);