From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 27 Jan 2022 02:21:05 +0000 (+0100) Subject: don't draw the zoom reticle while dropping X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59374a04d007a0beb1ac1a59bb6e0495d6e61a3e;p=xonotic%2Fxonotic-data.pk3dir.git don't draw the zoom reticle while dropping --- diff --git a/qcsrc/common/gamemodes/gamemode/br/cl_br.qc b/qcsrc/common/gamemodes/gamemode/br/cl_br.qc index 3dddb9698..25be8d286 100644 --- a/qcsrc/common/gamemodes/gamemode/br/cl_br.qc +++ b/qcsrc/common/gamemodes/gamemode/br/cl_br.qc @@ -4,6 +4,8 @@ REGISTER_MUTATOR(cl_br, true); +// FIXME: some of these hooks don't work when spectating + MUTATOR_HOOKFUNCTION(cl_br, WantEventchase) { return (STAT(DROP) == DROP_FALLING); @@ -14,6 +16,11 @@ MUTATOR_HOOKFUNCTION(cl_br, DrawCrosshair) return (STAT(BLEEDING) || (STAT(DROP) != DROP_LANDED)); } +MUTATOR_HOOKFUNCTION(cl_br, DrawReticle) +{ + return (STAT(DROP) == DROP_FALLING); +} + MUTATOR_HOOKFUNCTION(cl_br, PlayerCanCrouch) { if(STAT(BLEEDING))