aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/cosmetic/dragon
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-11 15:15:23 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-11 15:15:23 +0800
commit4938b8d4ad2fee086b8021c51213295f0768afd5 (patch)
tree053d607b3a523d560c8a9a57ffb11471f725e804 /features/cosmetics/cosmetic/dragon
parent1ecfecc53f68a9ee371bf105eb8a656e0a98c5b3 (diff)
downloadSoopyV2-4938b8d4ad2fee086b8021c51213295f0768afd5.tar.gz
SoopyV2-4938b8d4ad2fee086b8021c51213295f0768afd5.tar.bz2
SoopyV2-4938b8d4ad2fee086b8021c51213295f0768afd5.zip
+ toggle to disable audio for own cosmetics
Diffstat (limited to 'features/cosmetics/cosmetic/dragon')
-rw-r--r--features/cosmetics/cosmetic/dragon/dragonWings.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js
index 88018a9..2516acf 100644
--- a/features/cosmetics/cosmetic/dragon/dragonWings.js
+++ b/features/cosmetics/cosmetic/dragon/dragonWings.js
@@ -305,10 +305,12 @@ class DragonWings extends Cosmetic {
if(this.player.getPlayer()[m.isInvisibleToPlayer](Player.getPlayer())){
return
}
+ if(!this.parent.ownCosmeticAudio.getValue()){
+ return
+ }
let horisontalSpeed = Math.sqrt((this.player.getPlayer()[f.posX.Entity]-this.player.getPlayer()[f.lastTickPosX])**2+(this.player.getPlayer()[f.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ])**2)
- let verticleSpeed = this.player.getPlayer()[f.posY.Entity]-this.player.getPlayer()[f.lastTickPosY]
-
+
// if((this.player === Player &&this.player.getPlayer().field_71075_bZ.field_75100_b) || (this.player !== Player && Math.abs(verticleSpeed)<0.2 && !this.player.getPlayer().field_70122_E)){//playerCapabilities.isFlying
if(this.flying){ //flying