// // PlayerObject::playerIsFallingBugged from 0x10021e4f8 to 0x10021e5a4 (172 bytes) // // 7 xrefs: // > PlayerObject::updateJump @ 0x10021a860 // > PlayerObject::updateJump @ 0x10021a880 // > PlayerObject::updateJump @ 0x10021ab48 // > PlayerObject::updateJump @ 0x10021acc8 // > PlayerObject::updateJump @ 0x10021afac // > PlayerObject::updateJump @ 0x10021b064 // > PlayerObject::updateJump @ 0x10021b214 // // 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 // bool __fastcall PlayerObject::playerIsFallingBugged(PlayerObject *a1) { float v1; // s0 double m_yVelocity; // d1 double m_gravity; // d0 float v5; // s0 if ( a1->m_isSideways || a1->m_isPlatformer || a1->m_isSwing || a1->m_fixGravityBug ) { v1 = a1->m_gravity + a1->m_gravity; m_yVelocity = a1->m_yVelocity; if ( a1->m_isUpsideDown ) return m_yVelocity > (float)-v1; else return m_yVelocity < v1; } else { m_gravity = a1->m_gravity; if ( a1->m_isUpsideDown ) { return a1->m_yVelocity > m_gravity + m_gravity; } else { v5 = m_gravity; if ( a1->m_unkA99 ) v5 = -v5; return a1->m_yVelocity < (float)(v5 + v5); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source