// // GJBaseGameLayer::lightningFlash from 0x140246d00 to 0x140246ed7 (471 bytes) // // 2 xrefs: // > PlayerObject::togglePlayerScale @ 0x1403a0c6c // > @ 0x1406ce6d0 // // 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=1 void GJBaseGameLayer::lightningFlash( GJBaseGameLayer *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3, cocos2d::ccColor3B *a4, float a5, float a6, int a7, bool a8, float a9) { float v9; // xmm3_4 _BOOL8 v13; // rdx __int64 v14; // rax cocos2d::CCPoint v15; // rax cocos2d::CCPoint v16; // rbx cocos2d::CCPoint v17; // rax cocos2d::CCLightning *v18; // rbx __int64 v19; // rax __int64 v20; // rdi struct cocos2d::CCBlink *v21; // rbx struct cocos2d::CCDelayTime *v22; // rax struct cocos2d::CCSequence *v23; // rax cocos2d::ccColor3B *v24; // r8 __int64 v25; // rbx struct cocos2d::CCDelayTime *v26; // rax float v27; // [rsp+20h] [rbp-28h] BYREF cocos2d::CCPoint v28; // [rsp+28h] [rbp-20h] BYREF cocos2d::CCPoint v29; // [rsp+30h] [rbp-18h] BYREF ((void (__fastcall *)(_QWORD, _QWORD, _QWORD))cocos2d::CCPoint::operator-)(a3, &v27, a2); v14 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v28 = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v28); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v14 = qword_1406C2ED8; } if ( !*(_BYTE *)(v14 + 917) ) { cocos2d::CCPoint::CCPoint(&v28); v16 = v15; cocos2d::CCPoint::CCPoint(&v29); v18 = cocos2d::CCLightning::lightningWithStrikePoint(v17, v16, a6); ((void (__fastcall *)(cocos2d::CCLightning *, cocos2d::CCPoint))v18->setPosition_0)(v18, a2); v18->setColor(&v18->cocos2d::CCRGBAProtocol, a4); v18->m_lineWidth = a5; *(_WORD *)&v18->m_unkBool = 257; v18->m_opacityModify = a9; if ( a7 ) v18->m_displacement = a7; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v18, 0); } if ( a8 ) { LOBYTE(v13) = 1; a1->m_flashNode->setVisible(a1->m_flashNode, v13); v19 = cocos2d::CCHide::create(); if ( a7 ) { v25 = v19; v26 = cocos2d::CCDelayTime::create(0.079999998); v23 = cocos2d::CCSequence::create(v26, v25, 0); } else { v20 = v19; v21 = cocos2d::CCBlink::create(0.12, 1u); v22 = cocos2d::CCDelayTime::create(0.079999998); v23 = cocos2d::CCSequence::create(v22, v21, v20, 0); } cocos2d::CCNode::runAction((CCLightFlash *)a1->m_flashNode, (cocos2d::CCPoint)v23, v24, v9, v27); } }