From 327bad2eafb8cfc05b7f831992be5700a167a53c Mon Sep 17 00:00:00 2001 From: Gaƫl C Date: Sat, 1 Dec 2018 10:01:32 +0100 Subject: Added pitch fly mode (#7817) In pitch fly mode, you fly to the exact direction you are pointing at, using the forward key. Other move directions are also pitched accordingly. It allows smoother and more complex movements. Can be enabled/disabled by L key by default (set keymap_pitchfly in minetest.conf) --- src/player.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 674491546..9af6e5cac 100644 --- a/src/player.h +++ b/src/player.h @@ -87,6 +87,7 @@ struct PlayerControl struct PlayerSettings { bool free_move = false; + bool pitch_fly = false; bool fast_move = false; bool continuous_forward = false; bool always_fly_fast = false; @@ -94,8 +95,8 @@ struct PlayerSettings bool noclip = false; bool autojump = false; - const std::string setting_names[7] = { - "free_move", "fast_move", "continuous_forward", "always_fly_fast", + const std::string setting_names[8] = { + "free_move", "pitch_fly", "fast_move", "continuous_forward", "always_fly_fast", "aux1_descends", "noclip", "autojump" }; void readGlobalSettings(); -- cgit v1.2.3