summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorGaƫl C <gael-de-sailly@netc.eu>2018-12-01 10:01:32 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-12-01 10:01:32 +0100
commit327bad2eafb8cfc05b7f831992be5700a167a53c (patch)
tree682d70aca114d7d350ed23b22075c96c2fc549be /src/player.h
parentdcf58a3ad0c1092b3537039ee55892bb7dc83dee (diff)
downloadminetest-327bad2eafb8cfc05b7f831992be5700a167a53c.tar.gz
minetest-327bad2eafb8cfc05b7f831992be5700a167a53c.tar.bz2
minetest-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 'src/player.h')
-rw-r--r--src/player.h5
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();