]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
OK Weapons: use wr_zoomdir with oknex.
authorLyberta <lyberta@lyberta.net>
Mon, 12 Feb 2018 18:54:59 +0000 (21:54 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 12 Feb 2018 18:54:59 +0000 (21:54 +0300)
qcsrc/common/mutators/mutator/overkill/oknex.qc

index c9afa7c6c913f69a3eec52e0809c062b1264697b..7980000e2c897f357048baac586176b028e65bf3 100644 (file)
@@ -404,4 +404,9 @@ METHOD(OverkillNex, wr_zoom, bool(entity thiswep, entity actor))
        }
 }
 
+METHOD(OverkillNex, wr_zoomdir, bool(entity thiswep))
+{
+    return button_attack2 && !WEP_CVAR(oknex, secondary);
+}
+
 #endif