// // GJBaseGameLayer::lightningFlash from 0x100121330 to 0x1001214c5 (405 bytes) // // 3 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x10012117d // > GJBaseGameLayer::checkpointActivated @ 0x10016363d // > GJBaseGameLayer::lightningFlash_1 @ 0x100163746 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GJBaseGameLayer::lightningFlash( GJBaseGameLayer *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3, cocos2d::ccColor3B a4, float a5, float a6, int a7, bool a8, float a9) { int v9; // r8d char v10; // r9 char v11; // r15 int v12; // r14d GJBaseGameLayer *v13; // rbx char v14; // ecx^2 float v15; // xmm0_4 cocos2d::CCLightning *v16; // r13 unsigned int v17; // r15d unsigned int v18; // eax int v19; // ecx int v20; // r8d int v21; // r9d cocos2d::CCAction *v22; // rax GJBaseGameLayer *v23; // r14 unsigned int v24; // ebx unsigned int v25; // eax unsigned int v26; // esi int v27; // r8d int v28; // r9d char v29[8]; // [rsp+8h] [rbp-58h] BYREF char v30[8]; // [rsp+10h] [rbp-50h] BYREF char v31[8]; // [rsp+18h] [rbp-48h] BYREF GJBaseGameLayer *v32; // [rsp+20h] [rbp-40h] float v33; // [rsp+28h] [rbp-38h] float v34; // [rsp+2Ch] [rbp-34h] float x; // [rsp+30h] [rbp-30h] __int16 v36; // [rsp+34h] [rbp-2Ch] BYREF char v37; // [rsp+36h] [rbp-2Ah] v33 = a5; v11 = v10; v12 = v9; x = a3.x; v34 = a2.x; v13 = a1; v36 = a8; v37 = v14; sub_10028CD00(v31, a7, *(_QWORD *)&a4.r); if ( !GameManager::sharedState()->m_performanceMode ) { v32 = a1; sub_10028CC60(v29); sub_10028CC60(v30); v15 = x; v16 = cocos2d::CCLightning::lightningWithStrikePoint((cocos2d::CCPoint)LODWORD(x), a3, a5); ((void (__fastcall *)(cocos2d::CCLightning *, _QWORD, float, double, float, float))v16->setPosition)( v16, *(_QWORD *)&a4.r, v15, *(double *)&a3, a5, a6); ((void (__fastcall *)(cocos2d::CCLightning *, __int16 *))v16->setColor)(v16, &v36); v16->m_lineWidth = v34; *(_WORD *)&v16->m_unkBool = 257; a2 = (cocos2d::CCPoint)LODWORD(v33); v16->m_opacityModify = v33; if ( v12 ) v16->m_displacement = v12; v13 = v32; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLightning *, _QWORD))v32->m_objectLayer->addChild_0)( v32->m_objectLayer, v16, 0); } if ( v11 ) { ((void (__fastcall *)(cocos2d::CCNode *, __int64, double, double, double, double))v13->m_flashNode->setVisible)( v13->m_flashNode, 1, *(double *)&a2, *(double *)&a3, *(double *)&a5, *(double *)&a6); v17 = (unsigned int)cocos2d::CCDelayTime::create(0.079999998); if ( v12 ) { v18 = (unsigned int)cocos2d::CCHide::create(); v22 = (cocos2d::CCAction *)sub_1003B5760(v17, v18, 0, v19, v20, v21); } else { v23 = v13; v24 = (unsigned int)cocos2d::CCBlink::create(0.12, 1u); v25 = (unsigned int)cocos2d::CCHide::create(); v26 = v24; v13 = v23; v22 = (cocos2d::CCAction *)sub_1003B5760(v17, v26, v25, 0, v27, v28); } cocos2d::CCNode::runAction(v13->m_flashNode, v22); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source