mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Add physics overrides for walk speed and Fast Mode (#14475)
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
This commit is contained in:
parent
c044a3c1ca
commit
2bdd0a6bdb
8 changed files with 94 additions and 33 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue