mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
inaccuracy now defines cone diameter instead of radius
This commit is contained in:
parent
2fed17bac7
commit
847126b7fd
@ -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
|
// Turn body to face firing direction, since the gun is attached to that, not the head
|
||||||
// Also apply accuracy debuff just before firing
|
// Also apply accuracy debuff just before firing
|
||||||
if(bind != null && bind != EnumKeybind.RELOAD) {
|
if(bind != null && bind != EnumKeybind.RELOAD) {
|
||||||
host.rotationYawHead += (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) * 2 * inaccuracy;
|
host.rotationPitch += (host.worldObj.rand.nextFloat() - 0.5F) * inaccuracy;
|
||||||
host.rotationYaw = host.rotationYawHead;
|
host.rotationYaw = host.rotationYawHead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user