//
// PlayerObject::bumpPlayer from 0x34b3e4 to 0x34b4aa (198 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::bumpPlayer @ 0x492164
//
// 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)
{
_BOOL4 isFacingDown; // r0
int v8; // r2
float v9; // r1
if ( a1->m_isPlatformer || !a1->m_fixRobotJump )
a1->m_touchedPad = 1;
if ( a3 == 44 )
{
if ( a5 )
{
if ( a1->m_isSideways && a1->m_isUpsideDown != GameObject::isFacingLeft(a5)
|| !a1->m_isSideways && (isFacingDown = GameObject::isFacingDown(a5), a1->m_isUpsideDown != isFacingDown) )
{
PlayerObject::flipGravity(a1, !a1->m_isUpsideDown, 1);
}
}
PlayerObject::spiderTestJump(a1, 0);
PlayerObject::playBumpEffect(a1, 44, a5);
}
else
{
PlayerObject::propellPlayer(a1, a2, a4, a3);
if ( a1->m_isPlatformer && !a1->m_isRotating )
{
if ( a3 == 34 )
v9 = 1.2;
else
v9 = 1.0;
PlayerObject::animatePlatformerJump(a1, v9);
}
if ( a3 == 34 )
{
a1->m_isAccelerating = 1;
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_lastGroundedPos, COERCE_FLOAT(&stru_AC5C68), v8, 1, a5);
}
else
{
a1->m_isAccelerating = 0;
}
}
}