From cc745c2bdfaf7293efafdef10883d75d228dbc39 Mon Sep 17 00:00:00 2001 From: "c.rxxp.y" Date: Mon, 4 Nov 2024 18:56:29 -0500 Subject: [PATCH] Update bullet.js --- js/bullet.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/js/bullet.js b/js/bullet.js index c776fb20..bf701fe4 100644 --- a/js/bullet.js +++ b/js/bullet.js @@ -8246,6 +8246,18 @@ const b = { } } + const isZoom = function () { + if (tech.isSniperZoom) { + document.body.addEventListener("wheel", (e) => { + if (e.deltaY > 0) { + simulation.setZoom(simulation.zoomScale / 0.9) + } else { + simulation.setZoom(simulation.zoomScale * 0.9) + } + }); + } + } + const chooseBulletType = function () { if (tech.isExplodeSnipe) { spread = 0; @@ -8278,7 +8290,7 @@ const b = { spray(16); } } - + isZoom(); coolDown(); b.muzzleFlash(35); chooseBulletType();