// // PlayerObject::bumpPlayer from 0x10022cab0 to 0x10022cbe0 (304 bytes) // // 1 xrefs: // > GJBaseGameLayer::bumpPlayer @ 0x1001e906c // // 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::bumpPlayer(PlayerObject *a1, float a2, int a3, bool a4, GameObject *a5) { int isFacingLeft; // w0 int m_isUpsideDown; // w8 int isFacingDown; // w0 GameObject *v11; // x2 float v12; // s0 if ( a1->m_isPlatformer || !a1->m_fixRobotJump ) a1->m_touchedPad = 1; if ( a3 == 44 ) { if ( a5 ) { if ( !a1->m_isSideways ) goto LABEL_9; isFacingLeft = GameObject::isFacingLeft(a5); m_isUpsideDown = a1->m_isUpsideDown; if ( m_isUpsideDown != isFacingLeft ) { LABEL_10: PlayerObject::flipGravity(a1, (unsigned __int8)m_isUpsideDown != 1, 1); goto LABEL_11; } if ( !a1->m_isSideways ) { LABEL_9: isFacingDown = GameObject::isFacingDown(a5); m_isUpsideDown = a1->m_isUpsideDown; if ( m_isUpsideDown != isFacingDown ) goto LABEL_10; } } LABEL_11: PlayerObject::spiderTestJump(a1, 0); PlayerObject::playBumpEffect(a1, 44, v11); return; } PlayerObject::propellPlayer(a1, a2, a4, a3); if ( a1->m_isPlatformer && !a1->m_isRotating ) { v12 = 1.2; if ( a3 != 34 ) v12 = 1.0; PlayerObject::animatePlatformerJump(a1, v12); } a1->m_isAccelerating = 0; if ( a3 == 34 ) { a1->m_isAccelerating = 1; sub_1000229D0(&a1->m_lastGroundedPos, (double *)&stru_10086CBF0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source