]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'martin-t/mg-solidpen' into 'master'
authorMario <mario.mario@y7mail.com>
Sat, 7 Sep 2019 07:00:41 +0000 (07:00 +0000)
committerMario <mario.mario@y7mail.com>
Sat, 7 Sep 2019 07:00:41 +0000 (07:00 +0000)
Increase MG solidpenetration

See merge request xonotic/xonotic-data.pk3dir!619

1  2 
qcsrc/server/weapons/tracing.qc
xonotic-server.cfg

index 91c23563f030f932348dc4de3e7f9a2258c4c8a3,09e9eab980e7ad51c1859542af51da1ccbc19f65..06bebeba2746f09b57e3cc37e6f0c4c95075f5c5
@@@ -330,20 -330,24 +330,19 @@@ void fireBullet_trace_callback(vector s
        fireBullet_last_hit = NULL;
  }
  
 -void fireBullet(entity this, .entity weaponentity, vector start, vector dir, float spread, float max_solid_penetration, float damage, float force, float dtype, entity tracer_effect)
 +void fireBullet_antilag(entity this, .entity weaponentity, vector start, vector dir, float spread, float max_solid_penetration, float damage, float force, float dtype, entity tracer_effect, bool do_antilag)
  {
-       vector  end;
        dir = normalize(dir + randomvec() * spread);
-       end = start + dir * max_shot_distance;
+       vector end = start + dir * max_shot_distance;
  
        fireBullet_last_hit = NULL;
        fireBullet_trace_callback_eff = tracer_effect;
  
-       float solid_penetration_left = 1;
+       float solid_penetration_fraction = 1;
+       float damage_fraction = 1;
        float total_damage = 0;
  
 -      float lag = ((IS_REAL_CLIENT(this)) ? ANTILAG_LATENCY(this) : 0);
 -      if(lag < 0.001)
 -              lag = 0;
 -      bool noantilag = ((IS_CLIENT(this)) ? CS(this).cvar_cl_noantilag : false);
 -      if(autocvar_g_antilag == 0 || noantilag)
 -              lag = 0; // only do hitscan, but no antilag
 +      float lag = ((do_antilag) ? antilag_getlag(this) : 0);
        if(lag)
                antilag_takeback_all(this, lag);
  
Simple merge