From 6a13f2ef08b75b77479c703c5e1ab8ae265d37c6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 17 Dec 2025 22:09:53 -0500 Subject: [PATCH] Fixed weapon velocity delta calculations --- core/src/mindustry/type/Weapon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/Weapon.java b/core/src/mindustry/type/Weapon.java index 2e9996ea24..6f5083be8a 100644 --- a/core/src/mindustry/type/Weapon.java +++ b/core/src/mindustry/type/Weapon.java @@ -433,7 +433,7 @@ public class Weapon implements Cloneable{ (!useAmmo || unit.ammo > 0 || !state.rules.unitAmmo || unit.team.rules().infiniteAmmo) && //check ammo (!alternate || wasFlipped == flipSprite) && mount.warmup >= minWarmup && //must be warmed up - unit.vel.len() >= minShootVelocity && //check velocity requirements + unit.deltaLen() / Time.delta >= minShootVelocity && //check velocity requirements (mount.reload <= 0.0001f || (alwaysContinuous && mount.bullet == null)) && //reload has to be 0, or it has to be an always-continuous weapon (alwaysShooting || Angles.within(rotate ? mount.rotation : unit.rotation + baseRotation, mount.targetRotation, shootCone)) //has to be within the cone ){