diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-07 15:44:46 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-07 15:44:46 +0800 |
commit | 201237a0eaaefd6576b7a305897bf12b4add0f1a (patch) | |
tree | 7c39b02462c4ed78525bc39745617947793f563d /features | |
parent | 6accfc8d22f8873040f347abaf45e9008686a203 (diff) | |
download | SoopyV2-201237a0eaaefd6576b7a305897bf12b4add0f1a.tar.gz SoopyV2-201237a0eaaefd6576b7a305897bf12b4add0f1a.tar.bz2 SoopyV2-201237a0eaaefd6576b7a305897bf12b4add0f1a.zip |
Mapping fixes for dragon wings and deletesoopyv1 thing
Diffstat (limited to 'features')
-rw-r--r-- | features/cosmetics/cosmetic/dragon/dragonWings.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js index 4044e85..51579fc 100644 --- a/features/cosmetics/cosmetic/dragon/dragonWings.js +++ b/features/cosmetics/cosmetic/dragon/dragonWings.js @@ -50,7 +50,7 @@ class DragonWings extends Cosmetic { // console.log(rotation, entity.getEntity().field_70761_aq+(entity.getEntity().field_70761_aq-entity.getEntity().field_70760_ar)*ticks) 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.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ] + let verticleSpeed = this.player.getPlayer()[f.posY.Entity]-this.player.getPlayer()[f.lastTickPosY] this.animOffset += Math.min(1, horisontalSpeed)*10*timeSince+1*timeSince @@ -301,8 +301,7 @@ class DragonWings extends Cosmetic { } 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.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ] + 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 @@ -371,7 +370,7 @@ class DragonWings extends Cosmetic { 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.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ] + let verticleSpeed = this.player.getPlayer()[f.posY.Entity]-this.player.getPlayer()[f.lastTickPosY] this.animOffset += Math.min(1, horisontalSpeed)*10*timeSince+1*timeSince |