From 0154c7e5a64505df76f9157227210116e69ac236 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Fri, 20 Mar 2026 09:13:01 +0000 Subject: [PATCH 1/2] remove noclip ground glide when player noclipping --- src/game/shared/gamemovement.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/shared/gamemovement.cpp b/src/game/shared/gamemovement.cpp index 6224668be..eee58e11d 100644 --- a/src/game/shared/gamemovement.cpp +++ b/src/game/shared/gamemovement.cpp @@ -4034,6 +4034,12 @@ void CGameMovement::CategorizePosition( void ) if ( player->IsObserver() ) return; +#ifdef NEO + // don't glide along the ground when noclipping as a player + if (player->GetMoveType() == MOVETYPE_NOCLIP) + return; + +#endif // NEO float flOffset = 2.0f; point[0] = mv->GetAbsOrigin()[0]; From 35903511380de99a90a8a333983b4bbdf2562133 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Fri, 20 Mar 2026 15:00:30 +0000 Subject: [PATCH 2/2] move check later --- src/game/shared/gamemovement.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/game/shared/gamemovement.cpp b/src/game/shared/gamemovement.cpp index eee58e11d..e8ef48a39 100644 --- a/src/game/shared/gamemovement.cpp +++ b/src/game/shared/gamemovement.cpp @@ -4034,12 +4034,6 @@ void CGameMovement::CategorizePosition( void ) if ( player->IsObserver() ) return; -#ifdef NEO - // don't glide along the ground when noclipping as a player - if (player->GetMoveType() == MOVETYPE_NOCLIP) - return; - -#endif // NEO float flOffset = 2.0f; point[0] = mv->GetAbsOrigin()[0]; @@ -4103,11 +4097,19 @@ void CGameMovement::CategorizePosition( void ) } else { +#ifdef NEO + // don't glide along a slope when noclipping as a player + if (player->GetMoveType() != MOVETYPE_NOCLIP) +#endif // NEO SetGroundEntity( &pm ); } } else { +#ifdef NEO + // don't glide along the ground when noclipping as a player + if (player->GetMoveType() != MOVETYPE_NOCLIP) +#endif // NEO SetGroundEntity( &pm ); // Otherwise, point to index of ent under us. }