mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02:00
Client-side autojump. Remove Android-only stepheight autojump (#7228)
Works by detecting a collision while moving forward and then simulating a jump. If the simulated jump is more successful, an artificial jump key press is injected in the client. Includes setting and key change GUI element for enabling and disabling this feature.
This commit is contained in:
@@ -92,10 +92,11 @@ struct PlayerSettings
|
||||
bool always_fly_fast = false;
|
||||
bool aux1_descends = false;
|
||||
bool noclip = false;
|
||||
bool autojump = false;
|
||||
|
||||
const std::string setting_names[6] = {
|
||||
const std::string setting_names[7] = {
|
||||
"free_move", "fast_move", "continuous_forward", "always_fly_fast",
|
||||
"aux1_descends", "noclip"
|
||||
"aux1_descends", "noclip", "autojump"
|
||||
};
|
||||
void readGlobalSettings();
|
||||
};
|
||||
|
Reference in New Issue
Block a user