File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3137,6 +3137,14 @@ bool CGameMovement::LadderMove( void )
31373137 if ( mv->m_nButtons & IN_MOVERIGHT )
31383138 rightSpeed += climbSpeed;
31393139
3140+ #ifdef NEO
3141+ if (mv->m_flUpMove )
3142+ {
3143+ forwardSpeed = mv->m_flUpMove > 0 ? climbSpeed : -climbSpeed;
3144+ rightSpeed = 0 ;
3145+ }
3146+ #endif // NEO
3147+
31403148 if ( mv->m_nButtons & IN_JUMP )
31413149 {
31423150 player->SetMoveType ( MOVETYPE_WALK );
@@ -3154,7 +3162,11 @@ bool CGameMovement::LadderMove( void )
31543162 // pev->velocity.x, pev->velocity.y, pev->velocity.z);
31553163 // Calculate player's intended velocity
31563164 // Vector velocity = (forward * gpGlobals->v_forward) + (right * gpGlobals->v_right);
3165+ #ifdef NEO
3166+ VectorScale ( mv->m_flUpMove ? -player->m_vecLadderNormal : m_vecForward, forwardSpeed, velocity );
3167+ #else
31573168 VectorScale ( m_vecForward, forwardSpeed, velocity );
3169+ #endif // NEO
31583170 VectorMA ( velocity, rightSpeed, m_vecRight, velocity );
31593171
31603172 // Perpendicular in the ladder plane
You can’t perform that action at this time.
0 commit comments