// // PlayerObject::bumpPlayer from 0x14039f6a0 to 0x14039f850 (432 bytes) // // 2 xrefs: // > GJBaseGameLayer::bumpPlayer @ 0x140217b66 // > @ 0x1406d686c // // 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 PlayerObject::bumpPlayer(PlayerObject *a1, float a2, int a3, bool a4, GameObject *a5) { bool m_isUpsideDown; // di GameObject *v8; // r8 GJBaseGameLayer *m_gameLayer; // rcx float v10; // xmm1_4 if ( a1->m_isPlatformer || !a1->m_fixRobotJump ) a1->m_touchedPad = 1; if ( a3 == 44 ) { if ( a5 ) { if ( a1->m_isSideways && (m_isUpsideDown = a1->m_isUpsideDown, GameObject::isFacingLeft(a5) != m_isUpsideDown) || !a1->m_isSideways && (m_isUpsideDown = a1->m_isUpsideDown, GameObject::isFacingDown(a5) != m_isUpsideDown) ) { PlayerObject::flipGravity(a1, !m_isUpsideDown, 1); } } PlayerObject::spiderTestJumpInternal(a1, 0); m_gameLayer = a1->m_gameLayer; if ( m_gameLayer ) GJBaseGameLayer::gameEventTriggered(m_gameLayer, SpiderTeleport, 0, a1->m_uniqueID); if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isBall && !a1->m_isSpider ) ((void (__fastcall *)(PlayerObject *))a1->setRotation)(a1); PlayerObject::playBumpEffect(a1, 44, v8); } else { PlayerObject::propellPlayer(a1, a2, a4, a3); if ( a1->m_isPlatformer && !a1->m_isRotating ) { if ( a3 == 34 ) v10 = 1.2; else v10 = 1.0; PlayerObject::animatePlatformerJump(a1, v10); } a1->m_isAccelerating = 0; if ( a3 == 34 ) { a1->m_isAccelerating = 1; cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, &stru_1406C2450); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source