Skip to content

Commit

Permalink
BehingWalls option
Browse files Browse the repository at this point in the history
  • Loading branch information
opZywl authored Jan 25, 2024
1 parent ec0a09c commit 4487377
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ object KillAura : Module() {
if (i < newValue) set(i)
}
}.displayable { attackDisplay.get() && throughWallsValue.get() } as FloatValue

private val behindWallsValue = BoolValue("BehingWalls", false)

private val fovValue = FloatValue("FOV", 180f, 0f, 180f).displayable { bypassDisplay.get() }
private val hitAbleValue = BoolValue("AlwaysHitAble", true).displayable { bypassDisplay.get() }
Expand Down Expand Up @@ -901,6 +901,10 @@ object KillAura : Module() {
}
}
}

if (behindWallsValue.get() && RaycastUtils.isRaycastEntityValid(entity, maxRange.toDouble())) {
stopBlocking()
}
}

private fun swingKeepSprint(entity: EntityLivingBase) {
Expand All @@ -924,6 +928,12 @@ object KillAura : Module() {
return true
}

val isFacingThroughWalls = behindWallsValue.get() && !RaycastUtils.isRaycastEntityValid(entity, maxRange.toDouble())

if (isFacingThroughWalls) {
return false
}

// 视角差异
val entityFov = RotationUtils.getRotationDifference(RotationUtils.toRotation(RotationUtils.getCenter(entity.hitBox), true), RotationUtils.serverRotation)

Expand Down

0 comments on commit 4487377

Please sign in to comment.