diff options
author | inglettronald <inglettronald@gmail.com> | 2023-05-25 16:22:41 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-05-25 16:22:41 -0500 |
commit | 093b826824391e06724933dcb74498516aecc8ab (patch) | |
tree | 7fc1dbf61bab9915536d663cedcdb9d69aa26485 /src/main/kotlin/dulkirmod/features | |
parent | 8ebf205fd0771c96fe3db2f726b7775e6960143c (diff) | |
download | DulkirMod-093b826824391e06724933dcb74498516aecc8ab.tar.gz DulkirMod-093b826824391e06724933dcb74498516aecc8ab.tar.bz2 DulkirMod-093b826824391e06724933dcb74498516aecc8ab.zip |
deprecated
Diffstat (limited to 'src/main/kotlin/dulkirmod/features')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/HurtCamSlider.kt | 31 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/features/ViewBobbing.kt | 7 |
2 files changed, 0 insertions, 38 deletions
diff --git a/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt b/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt deleted file mode 100644 index 4ba4798..0000000 --- a/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt +++ /dev/null @@ -1,31 +0,0 @@ -package dulkirmod.features - -import dulkirmod.DulkirMod.Companion.mc -import dulkirmod.config.DulkirConfig -import net.minecraft.client.renderer.GlStateManager -import net.minecraft.entity.EntityLivingBase -import net.minecraft.util.MathHelper - -object HurtCamSlider { - fun renderHurt(partialTicks: Float): Boolean { - if (!DulkirConfig.hurtCamSlider) return false - if (mc.renderViewEntity is EntityLivingBase) { - val entitylivingbase = mc.renderViewEntity as EntityLivingBase - var f: Float = (entitylivingbase.hurtTime.toFloat() - partialTicks) - if (entitylivingbase.health <= 0.0f) { - val f1: Float = entitylivingbase.deathTime.toFloat() + partialTicks - GlStateManager.rotate(40.0f - 8000.0f / (f1 + 200.0f), 0.0f, 0.0f, 1.0f) - } - if (f < 0.0f) { - return true - } - f /= entitylivingbase.maxHurtTime.toFloat() - f = MathHelper.sin(f * f * f * f * Math.PI.toFloat()) - val f2 = entitylivingbase.attackedAtYaw - GlStateManager.rotate(-f2, 0.0f, 1.0f, 0.0f) - GlStateManager.rotate(-f * 14.0f * DulkirConfig.hurtCamIntensity, 0.0f, 0.0f, 1.0f) - GlStateManager.rotate(f2, 0.0f, 1.0f, 0.0f) - } - return true - } -}
\ No newline at end of file diff --git a/src/main/kotlin/dulkirmod/features/ViewBobbing.kt b/src/main/kotlin/dulkirmod/features/ViewBobbing.kt deleted file mode 100644 index cdb866b..0000000 --- a/src/main/kotlin/dulkirmod/features/ViewBobbing.kt +++ /dev/null @@ -1,7 +0,0 @@ -package dulkirmod.features - -object ViewBobbing { - fun renderBob(partialTicks: Float): Boolean { - return false - } -}
\ No newline at end of file |