// // PlayerObject::playBumpEffect from 0x14039fa50 to 0x14039fc52 (514 bytes) // // 3 xrefs: // > PlayerObject::bumpPlayer @ 0x14039f7dc // > PlayerObject::propellPlayer @ 0x14039f973 // > @ 0x1406d6884 // // 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 // // Hidden C++ exception states: #wind=3 void PlayerObject::playBumpEffect(PlayerObject *a1, int a2, GameObject *a3) { __int64 v5; // rax float v6; // xmm3_4 CCCircleWave *v7; // rax CCCircleWave *v8; // rdi char v9; // dl int v10; // ebx int v11; // ebx GameObject *m_lastActivatedPortal; // rbx cocos2d::CCObject *m_target; // rcx CCCircleWave_vtbl *v14; // rbx __int64 v15; // rax __int64 v16; // rdx CCCircleWaveDelegate *v17; // rcx CCCircleWaveDelegate *v18; // rax void *v19; // [rsp+50h] [rbp+18h] __int16 v20; // [rsp+50h] [rbp+18h] void *v21; // [rsp+50h] [rbp+18h] v5 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v19 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = qword_1406C2ED8; } if ( !*(_BYTE *)(v5 + 917) && a1->m_playEffects ) { v6 = 10.0; if ( a1->m_vehicleSize >= 1.0 && a2 == 34 ) v6 = 12.0; v7 = CCCircleWave::create(v6, 40.0, 0.25, 0, 1); v8 = v7; v20 = -14081; v9 = 0; v10 = a2 - 9; if ( v10 ) { v11 = v10 - 1; if ( v11 ) { if ( v11 != 34 ) { LABEL_15: *(_WORD *)&v7->m_color.r = v20; v7->m_color.b = v9; v7->setPosition_0(v7, &a1->m_lastPortalPos); m_lastActivatedPortal = a1->m_lastActivatedPortal; if ( m_lastActivatedPortal ) { m_target = v8->m_target; if ( m_target ) cocos2d::CCObject::release(m_target); v8->m_target = m_lastActivatedPortal; cocos2d::CCObject::retain(m_lastActivatedPortal); cocos2d::CCNode::unschedule(v8, CCCircleWave::updatePosition); v14 = v8->__vftable; v15 = (__int64)v8->m_target->getPosition_0(v8->m_target); v14->setPosition_0(v8, (const cocos2d::CCPoint *)v15); v16 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v21 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v16 = qword_1406C2ED8; } v17 = *(CCCircleWaveDelegate **)(v16 + 520); v18 = v17 + 1780; if ( !v17 ) v18 = nullptr; v8->m_delegate = v18; cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(*(_QWORD *)(v16 + 520) + 14520LL), v8); } a1->m_parentLayer->addChild_0(a1->m_parentLayer, v8, 0); return; } HIBYTE(v20) = 50; } else { v20 = -256; } } else { HIBYTE(v20) = 0; } v9 = -1; goto LABEL_15; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source