From: Martin Taibr Date: Fri, 18 Aug 2017 15:23:02 +0000 (+0200) Subject: hardcoded bullet trace effect X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f4b1bad998f4a7d1808b0457a6f738af4bf90be9;p=xonotic%2Fxonotic-data.pk3dir.git hardcoded bullet trace effect --- diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index f657789f8..ae7856475 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -343,9 +343,9 @@ void fireBullet(entity this, .entity weaponentity, vector start, vector dir, flo float solid_penetration_left = 1; float total_damage = 0; - if(tracereffects & EF_RED) + if(max_solid_penetration >= 50) fireBullet_trace_callback_eff = EFFECT_RIFLE; - else if(tracereffects & EF_BLUE) + else if(max_solid_penetration < 50) fireBullet_trace_callback_eff = EFFECT_RIFLE_WEAK; else fireBullet_trace_callback_eff = EFFECT_BULLET;