From: Mario Date: Sun, 29 Dec 2019 08:07:43 +0000 (+1000) Subject: Apply martin's version of the walljump angle fix X-Git-Tag: xonotic-v0.8.5~1169 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=39e2b0cfdc761f22e772b1b93db79f48a2ebca44;p=xonotic%2Fxonotic-data.pk3dir.git Apply martin's version of the walljump angle fix --- diff --git a/qcsrc/common/mutators/mutator/walljump/walljump.qc b/qcsrc/common/mutators/mutator/walljump/walljump.qc index 46e18059c..519159d91 100644 --- a/qcsrc/common/mutators/mutator/walljump/walljump.qc +++ b/qcsrc/common/mutators/mutator/walljump/walljump.qc @@ -21,11 +21,10 @@ vector PlayerTouchWall(entity this) if (!(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT)) \ return trace_plane_normal; - vector forward, right, up; - MAKE_VECTORS(this.angles, forward, right, up); - float dist = 10, max_normal = 0.2, scaler = 100; vector start = this.origin; + vector forward, right, _up; + MAKE_VECTORS(this.angles, forward, right, _up); TRACE(start + forward * scaler) TRACE(start - forward * scaler) TRACE(start + right * scaler)