mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Sneak: Add option for old move code
Temporary option for the old move code for specific old sneak behaviour. Enabled by setting the added 'new move' physics override to false. By default 'new move' is true.
This commit is contained in:
parent
907be0ab91
commit
f6da7b3fda
10 changed files with 349 additions and 12 deletions
|
@ -1652,6 +1652,7 @@ void GenericCAO::processMessage(const std::string &data)
|
|||
// these are sent inverted so we get true when the server sends nothing
|
||||
bool sneak = !readU8(is);
|
||||
bool sneak_glitch = !readU8(is);
|
||||
bool new_move = !readU8(is);
|
||||
|
||||
|
||||
if(m_is_local_player)
|
||||
|
@ -1662,6 +1663,7 @@ void GenericCAO::processMessage(const std::string &data)
|
|||
player->physics_override_gravity = override_gravity;
|
||||
player->physics_override_sneak = sneak;
|
||||
player->physics_override_sneak_glitch = sneak_glitch;
|
||||
player->physics_override_new_move = new_move;
|
||||
}
|
||||
} else if (cmd == GENERIC_CMD_SET_ANIMATION) {
|
||||
// TODO: change frames send as v2s32 value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue