//
// PlayerObject::playBumpEffect from 0x10041acb0 to 0x10041aded (317 bytes)
//
// 2 xrefs:
// > PlayerObject::bumpPlayer @ 0x10041ac9e
// > PlayerObject::propellPlayer @ 0x10041af12
//
// 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::playBumpEffect(PlayerObject *a1, int a2, GameObject *a3)
{
__int64 v3; // rax
float v4; // xmm0_4
CCCircleWave *v5; // r14
int v6; // eax
GameObject *m_lastActivatedPortal; // rsi
PlayLayer *m_playLayer; // rax
CCCircleWaveDelegate *v9; // rcx
GameManager *v10; // rax
if ( !GameManager::sharedState()->m_performanceMode && a1->m_playEffects )
{
v3 = 0;
if ( a2 == 34 )
{
LOBYTE(v3) = a1->m_vehicleSize >= 1.0;
v4 = flt_10081B738[v3];
}
else
{
v4 = 10.0;
}
v5 = CCCircleWave::create_1(v4, 40.0, 0.25, 0);
if ( a2 == 9 )
{
v6 = 16711935;
}
else if ( a2 == 44 )
{
v6 = 16724735;
}
else
{
v6 = 51455;
if ( a2 == 10 )
v6 = 16776960;
}
*(_WORD *)&v5->m_color.r = v6;
v5->m_color.b = BYTE2(v6);
((void (__fastcall *)(CCCircleWave *, cocos2d::CCPoint *))v5->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;
v9 = &m_playLayer->CCCircleWaveDelegate;
if ( !m_playLayer )
v9 = nullptr;
v5->m_delegate = v9;
v10 = GameManager::sharedState();
PlayLayer::addCircle(v10->m_playLayer, v5);
}
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)(
a1->m_parentLayer,
v5,
0);
}
}