// // PlayerObject::playBumpEffect from 0x341770 to 0x34184a (218 bytes) // // 2 xrefs: // > PlayerObject::propellPlayer @ 0x341d9e // > PlayerObject::bumpPlayer @ 0x34b442 // // 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) { float v5; // r0 CCCircleWave *v6; // r0 CCCircleWave *v7; // r4 char v8; // r3 char v9; // r2 char v10; // r1 CCCircleWave_vtbl *v11; // r3 GameObject *m_lastActivatedPortal; // r1 PlayLayer *m_playLayer; // r3 GameManager *v14; // r0 if ( !GameManager::sharedState()->m_performanceMode && a1->m_playEffects ) { if ( a1->m_vehicleSize < 1.0 ) { v5 = 10.0; } else if ( a2 == 34 ) { v5 = 12.0; } else { v5 = 10.0; } v6 = CCCircleWave::create(v5, 40.0, 0.25, 0); v7 = v6; if ( a2 == 10 ) { v8 = -1; v10 = 0; v9 = -1; } else { if ( a2 == 44 ) { v8 = -1; v9 = 50; } else if ( a2 == 9 ) { v8 = -1; v9 = 0; } else { v8 = 0; v9 = -56; } v10 = -1; } v6->m_color.b = v8; v11 = v6->__vftable; v6->m_color.r = v10; v6->m_color.g = v9; v11->setPosition(v6, &a1->m_lastPortalPos); m_lastActivatedPortal = a1->m_lastActivatedPortal; if ( m_lastActivatedPortal ) { CCCircleWave::followObject(v7, m_lastActivatedPortal, 1); m_playLayer = GameManager::sharedState()->m_playLayer; if ( m_playLayer ) m_playLayer = (PlayLayer *)((char *)m_playLayer + 11756); v7->m_delegate = (CCCircleWaveDelegate *)m_playLayer; v14 = GameManager::sharedState(); PlayLayer::addCircle(v14->m_playLayer, v7); } a1->m_parentLayer->addChild_0(a1->m_parentLayer, v7, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source