mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 13:25:10 +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
@@ -682,7 +682,11 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
EntityProjectile projectile = shoot(entity, stats.accuracy, proj, f == 1);
|
||||
projectile.damage = event.getDamage();
|
||||
}
|
||||
this.playSound(this.stats.fireSound, 2.0F, 1.0f);
|
||||
|
||||
if (this.stats.playBurstSound || !this.stats.onSoundBegin) {
|
||||
this.playSound(this.stats.fireSound, 1.5F, 1.0f);
|
||||
this.stats.playBurstSound = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user