mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 18:55:29 +02:00
Add physics overrides for walk speed and Fast Mode (#14475)
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
This commit is contained in:
@@ -126,6 +126,9 @@ struct PlayerPhysicsOverride
|
||||
float liquid_sink = 1.f;
|
||||
float acceleration_default = 1.f;
|
||||
float acceleration_air = 1.f;
|
||||
float speed_fast = 1.f;
|
||||
float acceleration_fast = 1.f;
|
||||
float speed_walk = 1.f;
|
||||
|
||||
private:
|
||||
auto tie() const {
|
||||
@@ -133,7 +136,7 @@ private:
|
||||
return std::tie(
|
||||
speed, jump, gravity, sneak, sneak_glitch, new_move, speed_climb, speed_crouch,
|
||||
liquid_fluidity, liquid_fluidity_smooth, liquid_sink, acceleration_default,
|
||||
acceleration_air
|
||||
acceleration_air, speed_fast, acceleration_fast, speed_walk
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user