1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

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)
This commit is contained in:
Gaël C 2018-12-01 10:01:32 +01:00 committed by SmallJoker
parent dcf58a3ad0
commit 327bad2eaf
11 changed files with 91 additions and 44 deletions

View file

@ -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();