projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c60b1
)
Get v_angle when air dodging is enabled
author
Mario <mario@smbclan.net>
Sun, 24 Jul 2016 04:42:12 +0000
(14:42 +1000)
committer
Mario <mario@smbclan.net>
Sun, 24 Jul 2016 04:42:12 +0000
(14:42 +1000)
qcsrc/common/mutators/mutator/dodging/dodging.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/mutators/mutator/dodging/dodging.qc
b/qcsrc/common/mutators/mutator/dodging/dodging.qc
index 23ef0cc8dc9a3fb2d5abd1a10e41ea8282db4674..7ddfcea2ba770f027f55672766155697be635620 100644
(file)
--- 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