diff options
author | Gaƫl C <gael-de-sailly@netc.eu> | 2018-12-01 10:01:32 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-12-01 10:01:32 +0100 |
commit | 327bad2eafb8cfc05b7f831992be5700a167a53c (patch) | |
tree | 682d70aca114d7d350ed23b22075c96c2fc549be /src/player.h | |
parent | dcf58a3ad0c1092b3537039ee55892bb7dc83dee (diff) | |
download | hax-minetest-server-327bad2eafb8cfc05b7f831992be5700a167a53c.tar.gz hax-minetest-server-327bad2eafb8cfc05b7f831992be5700a167a53c.zip |
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)
Diffstat (limited to '')
-rw-r--r-- | src/player.h | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |