// // PlayerObject::performSlideCheck from 0x1002200e0 to 0x1002201a4 (196 bytes) // // 1 xrefs: // > PlayerObject::postCollision @ 0x10021f4bc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall PlayerObject::performSlideCheck(PlayerObject *a1) { GameObject *m_currentSlope2; // x8 float v2; // s0 int m_platformerMovingLeft; // w8 int v4; // w9 int v5; // w10 int m_platformerMovingRight; // w11 m_currentSlope2 = a1->m_currentSlope2; if ( !m_currentSlope2 || !a1->m_isOnSlope && !a1->m_wasOnSlope || a1->m_maybeUpsideDownSlope || m_currentSlope2->m_isGripSlope || (v2 = fabsf(a1->m_slopeAngle * 57.296), v2 <= 40.0) ) { *(_WORD *)&a1->m_platformerMovingLeft = 0; return; } m_platformerMovingLeft = a1->m_platformerMovingLeft; if ( a1->m_slopeSlidingMaybeRotated ) { if ( !a1->m_isUpsideDown ) { LABEL_9: v4 = 0; v5 = 1; goto LABEL_13; } } else if ( a1->m_isUpsideDown ) { goto LABEL_9; } v5 = 0; v4 = 1; LABEL_13: m_platformerMovingRight = a1->m_platformerMovingRight; a1->m_platformerMovingLeft = v5; a1->m_platformerMovingRight = v4; if ( m_platformerMovingLeft != v5 || m_platformerMovingRight != v4 ) a1->m_changedDirectionsTime = a1->m_totalTime; a1->m_maybeChangedDirectionAngle = v2; a1->m_maybeGoingCorrectSlopeDirection = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source