From 5a24590b35c82881d400921deea544f2206c45d4 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 9 Aug 2018 14:24:00 +0200 Subject: [PATCH] Use a tracebox instead of traceline to check if player is flying, it fixes #843 "Repeated jump sound on xoylent" --- qcsrc/common/physics/player.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 2f4ebb1ff..f6ab29715 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -809,7 +809,8 @@ bool IsFlying(entity this) return false; if(this.waterlevel >= WATERLEVEL_SWIMMING) return false; - traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this); + tracebox(this.origin, this.mins, this.maxs, this.origin - '0 0 24', MOVE_NORMAL, this); + //traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this); if(trace_fraction < 1) return false; return true; -- 2.39.2