From 847126b7fd609bb15c767a14c1bccbfa18a4e8ab Mon Sep 17 00:00:00 2001 From: George Paton Date: Thu, 24 Oct 2024 16:23:42 +1100 Subject: [PATCH] inaccuracy now defines cone diameter instead of radius --- src/main/java/com/hbm/entity/mob/ai/EntityAIFireGun.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hbm/entity/mob/ai/EntityAIFireGun.java b/src/main/java/com/hbm/entity/mob/ai/EntityAIFireGun.java index 466521285..ba86c2b3a 100644 --- a/src/main/java/com/hbm/entity/mob/ai/EntityAIFireGun.java +++ b/src/main/java/com/hbm/entity/mob/ai/EntityAIFireGun.java @@ -114,8 +114,8 @@ public class EntityAIFireGun extends EntityAIBase { // Turn body to face firing direction, since the gun is attached to that, not the head // Also apply accuracy debuff just before firing if(bind != null && bind != EnumKeybind.RELOAD) { - host.rotationYawHead += (host.worldObj.rand.nextFloat() - 0.5F) * 2 * inaccuracy; - host.rotationPitch += (host.worldObj.rand.nextFloat() - 0.5F) * 2 * inaccuracy; + host.rotationYawHead += (host.worldObj.rand.nextFloat() - 0.5F) * inaccuracy; + host.rotationPitch += (host.worldObj.rand.nextFloat() - 0.5F) * inaccuracy; host.rotationYaw = host.rotationYawHead; }