]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hardcoded bullet trace effect martin-t/hacks
authorMartin Taibr <taibr.martin@gmail.com>
Fri, 18 Aug 2017 15:23:02 +0000 (17:23 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Fri, 18 Aug 2017 15:23:02 +0000 (17:23 +0200)
qcsrc/server/weapons/tracing.qc

index f657789f8cc5f8a920f2fb096b89b7476405dcf7..ae7856475017bd0fe8ccfc7d2feca3d5610fcb24 100644 (file)
@@ -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;