Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bool walking = movement_XZ && player->touching_ground;
bool swimming = (movement_XZ || movement_Y) && player->in_liquid);
const bool climbing = movement_Y && player->is_climbing;
if ((walking || swimming || climbing) &&
m_cache_view_bobbing &&
(!g_settings->getBool("free_move") || !m_gamedef->checkLocalPrivilege("fly")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment