-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRotationSprint.js
More file actions
18 lines (16 loc) · 825 Bytes
/
RotationSprint.js
File metadata and controls
18 lines (16 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
///api_version=2
(script = registerScript({
name: "RotationSprint",
authors: ["CzechHek"],
version: "1.1"
})).import("Core.lib");
module = {
category: "Movement",
description: "Silently rotates you in the way you are moving.",
values: turnspeed = value.createInteger("TurnSpeed", 180, 1, 180),
onUpdate: function () {
limitedRotation = RotationUtils.limitAngleChange(RotationUtils.serverRotation, rotation = new Rotation(MovementUtils.getDirection() * 180 / Math.PI, mc.thePlayer.rotationPitch), turnspeed.get());
!KillAuraModule.state && !ScaffoldModule.state && !TowerModule.state && !AimbotModule.state && !BowAimbotModule.state && RotationUtils.setTargetRotation(limitedRotation);
mc.thePlayer.setSprinting(RotationUtils.getRotationDifference(rotation) < 30);
}
}