This commit is contained in:
Anuken
2023-07-28 09:07:50 -04:00
parent d4111b8e76
commit ba9e39d7a4

View File

@@ -189,7 +189,7 @@ public class Weapon implements Cloneable{
float
rotation = unit.rotation - 90,
realRecoil = Mathf.pow(mount.recoil, recoilPow) * recoil,
weaponRotation = rotation + (rotate ? mount.rotation : 0),
weaponRotation = rotation + (rotate ? mount.rotation : baseRotation),
wx = unit.x + Angles.trnsx(rotation, x, y) + Angles.trnsx(weaponRotation, 0, -realRecoil),
wy = unit.y + Angles.trnsy(rotation, x, y) + Angles.trnsy(weaponRotation, 0, -realRecoil);