From: Mario Date: Sun, 24 Jul 2016 04:42:12 +0000 (+1000) Subject: Get v_angle when air dodging is enabled X-Git-Tag: xonotic-v0.8.2~700^2~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a323a1516b78b8fc3fd5b2d810032f8d68c6642;p=xonotic%2Fxonotic-data.pk3dir.git Get v_angle when air dodging is enabled --- diff --git a/qcsrc/common/mutators/mutator/dodging/dodging.qc b/qcsrc/common/mutators/mutator/dodging/dodging.qc index 23ef0cc8d..7ddfcea2b 100644 --- a/qcsrc/common/mutators/mutator/dodging/dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/dodging.qc @@ -189,7 +189,10 @@ void PM_dodging(entity this) } // make sure v_up, v_right and v_forward are sane - makevectors(this.angles); + if(PHYS_DODGING_AIR) + makevectors(this.v_angle); + else + makevectors(this.angles); // if we have e.g. 0.5 sec ramptime and a frametime of 0.25, then the ramp code // will be called ramp_time/frametime times = 2 times. so, we need to