Skip to content

Commit

Permalink
Update bullet.js
Browse files Browse the repository at this point in the history
  • Loading branch information
c-rxxp-y authored Nov 4, 2024
1 parent 54364e8 commit cc745c2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion js/bullet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -8278,7 +8290,7 @@ const b = {
spray(16);
}
}

isZoom();
coolDown();
b.muzzleFlash(35);
chooseBulletType();
Expand Down

0 comments on commit cc745c2

Please sign in to comment.