Skip to content

Commit 0d2f8c6

Browse files
authored
[Keybinds] Add secret keybinds that turn the camera 45° left/right (#258)
This feature request comes from ACatThatCanParkourReallyWell9900 and I agree that getting 45° strafe right now is pretty tedious... Until a proper gui with buttons is made, keybinds will have to do for accessing this functionality... Currently the keybinds are not set, as to not have too many keybinds that overwhelm the player...
2 parents 24f7cc0 + e09e493 commit 0d2f8c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/minecrafttas/tasmod/registries/TASmodKeybinds.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ public enum TASmodKeybinds {
3838
mc.displayGuiScreen(TASmodClient.hud);
3939
}
4040
}),
41-
41+
TURN_LEFT("Rotate 45 degrees left", "TASmod", Keyboard.KEY_NONE, () -> {
42+
TASmodClient.virtual.CAMERA_ANGLE.updateNextCameraAngle(0, -45);
43+
}),
44+
TURN_RIGHT("Rotate 45 degrees right", "TASmod", Keyboard.KEY_NONE, () -> {
45+
TASmodClient.virtual.CAMERA_ANGLE.updateNextCameraAngle(0, 45);
46+
}),
4247
TEST1("Various Testing", "TASmod", Keyboard.KEY_F12, () -> {
4348
}, VirtualKeybindings::isKeyDown),
4449
TEST2("Various Testing2", "TASmod", Keyboard.KEY_F7, () -> {

0 commit comments

Comments
 (0)