// // PlayerObject::playBumpEffect from 0x10022cbe0 to 0x10022cd04 (292 bytes) // // 2 xrefs: // > PlayerObject::bumpPlayer @ 0x10022cb5c // > PlayerObject::propellPlayer @ 0x10022cde8 // // 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) { bool v5; // zf float v6; // s0 CCCircleWave *v7; // x0 CCCircleWave *v8; // x20 int v9; // w8 GameObject *m_lastActivatedPortal; // x1 PlayLayer *m_playLayer; // x8 CCCircleWaveDelegate *v12; // x8 GameManager *v13; // x0 if ( !GameManager::sharedState()->m_performanceMode && a1->m_playEffects ) { v5 = a1->m_vehicleSize >= 1.0 && a2 == 34; v6 = 10.0; if ( v5 ) v6 = 12.0; v7 = CCCircleWave::create_1(v6, 40.0, 0.25, 0); v8 = v7; if ( a2 == 10 ) v9 = 16776960; else v9 = 51455; if ( a2 == 44 ) v9 = 16724735; if ( a2 == 9 ) v9 = 16711935; *(_WORD *)&v7->m_color.r = v9; v7->m_color.b = BYTE2(v9); ((void (__fastcall *)(CCCircleWave *, cocos2d::CCPoint *))v7->setPosition)(v7, &a1->m_lastPortalPos); m_lastActivatedPortal = a1->m_lastActivatedPortal; if ( m_lastActivatedPortal ) { CCCircleWave::followObject(v8, m_lastActivatedPortal, 1); m_playLayer = GameManager::sharedState()->m_playLayer; if ( m_playLayer ) v12 = &m_playLayer->CCCircleWaveDelegate; else v12 = nullptr; v8->m_delegate = v12; v13 = GameManager::sharedState(); PlayLayer::addCircle(v13->m_playLayer, v8); } ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v8, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source