diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-15 17:17:57 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-15 17:17:57 +0800 |
commit | b0a76fb4e93be9356d947e1b29a08804de76b870 (patch) | |
tree | aa59502e4dc9616b589e903e936c28f5d98aecbf /features/cosmetics/dragonWings.js | |
parent | eadcb388106517adc994152cd4c35ed47c93a4f2 (diff) | |
download | SoopyV2-b0a76fb4e93be9356d947e1b29a08804de76b870.tar.gz SoopyV2-b0a76fb4e93be9356d947e1b29a08804de76b870.tar.bz2 SoopyV2-b0a76fb4e93be9356d947e1b29a08804de76b870.zip |
- Fix for lag in build battle
- dragon wings rbg support
- anti hub spam
- cosmetics live updating
- connection to socket
Diffstat (limited to 'features/cosmetics/dragonWings.js')
-rw-r--r-- | features/cosmetics/dragonWings.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/features/cosmetics/dragonWings.js b/features/cosmetics/dragonWings.js index 8f960cf..d62178b 100644 --- a/features/cosmetics/dragonWings.js +++ b/features/cosmetics/dragonWings.js @@ -107,7 +107,7 @@ class DragonWings extends Cosmetic { } GlStateManager.func_179094_E(); // pushMatrix - Tessellator.colorize(1, 1, 1) + Tessellator.colorize(this.settings.color.r, this.settings.color.g, this.settings.color.b); if(this.player !== Player){ Tessellator.translate( @@ -261,11 +261,14 @@ class DragonWings extends Cosmetic { } GL11.glDisable(GL11.GL_CULL_FACE) - Tessellator.translate(0.1, 0, 0) + + let wing_center_dist = ((0-Math.log(1000*this.settings.scale+0.01)-2)-100000*this.settings.scale*this.settings.scale)/1000 + + Tessellator.translate(-wing_center_dist, 0, 0) Tessellator.scale(this.settings.scale, this.settings.scale, this.settings.scale) wing.func_78791_b(1) //render left wing - Tessellator.translate(-0.2/this.settings.scale, 0, 0) + Tessellator.translate(2*wing_center_dist/this.settings.scale, 0, 0) Tessellator.scale(-1, 1, 1) wing.func_78791_b(1) //render right wing |