//
// PlayerObject::playBumpEffect from 0x628eb8 to 0x629018 (352 bytes)
//
// 3 xrefs:
// > PlayerObject::propellPlayer @ 0x629844
// > PlayerObject::bumpPlayer @ 0x637450
// > ??> @ 0xc0eb8
//
// 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::playBumpEffect(PlayerObject *a1, int a2, GameObject *a3)
{
CCCircleWave *v5; // x19
char v6; // w2
char v7; // w4
char v8; // w1
CCCircleWave_vtbl *v9; // x3
GameObject *m_lastActivatedPortal; // x1
PlayLayer *m_playLayer; // x0
CCCircleWaveDelegate *v12; // x0
GameManager *v13; // x0
if ( GameManager::sharedState()->m_performanceMode || !a1->m_playEffects )
return;
if ( a1->m_vehicleSize >= 1.0 && a2 == 34 )
{
v5 = CCCircleWave::create(12.0, 40.0, 0.25, 0);
LABEL_6:
if ( a2 == 44 )
{
v6 = -1;
v7 = 50;
v8 = -1;
}
else
{
if ( a2 == 9 )
{
v6 = -1;
v7 = 0;
}
else
{
v6 = 0;
v7 = -56;
}
v8 = -1;
}
goto LABEL_10;
}
v5 = CCCircleWave::create(10.0, 40.0, 0.25, 0);
if ( a2 != 10 )
goto LABEL_6;
v6 = -1;
v8 = 0;
v7 = -1;
LABEL_10:
v9 = v5->__vftable;
v5->m_color.r = v8;
v5->m_color.g = v7;
v5->m_color.b = v6;
v9->setPosition(v5, &a1->m_lastPortalPos);
m_lastActivatedPortal = a1->m_lastActivatedPortal;
if ( m_lastActivatedPortal )
{
CCCircleWave::followObject(v5, m_lastActivatedPortal, 1);
m_playLayer = GameManager::sharedState()->m_playLayer;
if ( m_playLayer )
v12 = &m_playLayer->CCCircleWaveDelegate;
else
v12 = nullptr;
v5->m_delegate = v12;
v13 = GameManager::sharedState();
PlayLayer::addCircle(v13->m_playLayer, v5);
}
a1->m_parentLayer->addChild_0(a1->m_parentLayer, v5, 0);
}