]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't draw the zoom reticle while dropping
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Thu, 27 Jan 2022 02:21:05 +0000 (03:21 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Thu, 27 Jan 2022 02:21:30 +0000 (03:21 +0100)
qcsrc/common/gamemodes/gamemode/br/cl_br.qc

index 3dddb969839756c70680531778c1774c8df478b2..25be8d286ce035599e60bdd675321342052e935c 100644 (file)
@@ -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))