Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/game/shared/gamemovement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3137,6 +3137,14 @@ bool CGameMovement::LadderMove( void )
if ( mv->m_nButtons & IN_MOVERIGHT )
rightSpeed += climbSpeed;

#ifdef NEO
if (mv->m_flUpMove)
{
forwardSpeed = mv->m_flUpMove > 0 ? climbSpeed : -climbSpeed;
rightSpeed = 0;
}
#endif // NEO

if ( mv->m_nButtons & IN_JUMP )
{
player->SetMoveType( MOVETYPE_WALK );
Expand All @@ -3154,7 +3162,11 @@ bool CGameMovement::LadderMove( void )
// pev->velocity.x, pev->velocity.y, pev->velocity.z);
// Calculate player's intended velocity
//Vector velocity = (forward * gpGlobals->v_forward) + (right * gpGlobals->v_right);
#ifdef NEO
VectorScale( mv->m_flUpMove ? -player->m_vecLadderNormal : m_vecForward, forwardSpeed, velocity );
#else
VectorScale( m_vecForward, forwardSpeed, velocity );
#endif // NEO
VectorMA( velocity, rightSpeed, m_vecRight, velocity );

// Perpendicular in the ladder plane
Expand Down