mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 09:12:22 +00:00
Play Sound Options for Ranged Attacks
This commit is contained in:
1 parent
353d90a00a
commit
bcf329c0ae
5 files changed
+20
-1
No files matched your search
@@ -112,6 +112,9 @@ public class EntityAIRangedAttack extends EntityAIBase {
|
||||
|
||||
if (this.rangedAttackTime <= 0) {
|
||||
if (var1 <= (double) field_82642_h && (this.entityHost.getEntitySenses().canSee(this.attackTarget) || this.entityHost.ais.canFireIndirect == 2)) {
|
||||
if (this.field_70846_g == 0) {
|
||||
this.entityHost.stats.playBurstSound = true;
|
||||
}
|
||||
if (this.field_70846_g++ <= this.entityHost.stats.burstCount) {
|
||||
this.rangedAttackTime = this.entityHost.stats.fireRate;
|
||||
this.isShooting = true;
|
||||
|
||||
Reference in new issue
Block a user