edited to allow noclip

This commit is contained in:
sumoomus 2020-06-22 19:16:23 -04:00 committed by GitHub
parent 34b6dc843a
commit 441ac6f686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -196,7 +196,8 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
// Skip collision detection if noclip mode is used // Skip collision detection if noclip mode is used
//bool fly_allowed = m_client->checkLocalPrivilege("fly"); //bool fly_allowed = m_client->checkLocalPrivilege("fly");
bool fly_allowed = true; //toggled using default keybind bool fly_allowed = true; //toggled using default keybind
bool noclip = m_client->checkLocalPrivilege("noclip") && player_settings.noclip; //bool noclip = m_client->checkLocalPrivilege("noclip") && player_settings.noclip;
bool noclip = true && player_settings.noclip; //default keybind
bool free_move = player_settings.free_move && fly_allowed; bool free_move = player_settings.free_move && fly_allowed;
if (noclip && free_move) { if (noclip && free_move) {
@ -804,7 +805,8 @@ void LocalPlayer::old_move(f32 dtime, Environment *env, f32 pos_max_d,
// Skip collision detection if noclip mode is used // Skip collision detection if noclip mode is used
//bool fly_allowed = m_client->checkLocalPrivilege("fly"); //bool fly_allowed = m_client->checkLocalPrivilege("fly");
bool fly_allowed = true; //toggled using default keybind bool fly_allowed = true; //toggled using default keybind
bool noclip = m_client->checkLocalPrivilege("noclip") && player_settings.noclip; //bool noclip = m_client->checkLocalPrivilege("noclip") && player_settings.noclip;
bool noclip = true && player_settings.noclip; //default keybind
bool free_move = noclip && fly_allowed && player_settings.free_move; bool free_move = noclip && fly_allowed && player_settings.free_move;
if (free_move) { if (free_move) {
position += m_speed * dtime; position += m_speed * dtime;