From 4938b8d4ad2fee086b8021c51213295f0768afd5 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 11 Jan 2022 15:15:23 +0800 Subject: + toggle to disable audio for own cosmetics --- features/cosmetics/cosmetic/dragon/dragonWings.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'features/cosmetics/cosmetic/dragon') 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 -- cgit