// // GJBaseGameLayer::lightningFlash from 0x1000fd640 to 0x1000fd7d5 (405 bytes) // // 3 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x1000fd48d // > GJBaseGameLayer::checkpointActivated @ 0x100142dad // > GJBaseGameLayer::lightningFlash_1 @ 0x100142eb6 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:21:19 +0000 // void __fastcall GJBaseGameLayer::lightningFlash( __int64 a1, __int64 a2, __int64 a3, int a4, int a5, char a6, float a7, float a8, float a9) { __int64 v12; // rbx __int64 v14; // rdx double v15; // xmm0_8 __int64 v16; // rax __int64 v17; // r13 int v18; // r15d int v19; // eax int v20; // ecx int v21; // r8d int v22; // r9d __int64 v23; // rax __int64 v24; // r14 int v25; // ebx int v26; // eax int v27; // esi int v28; // r8d int v29; // r9d _BYTE v30[8]; // [rsp+8h] [rbp-58h] BYREF _BYTE v31[8]; // [rsp+10h] [rbp-50h] BYREF _BYTE v32[8]; // [rsp+18h] [rbp-48h] BYREF __int64 v33; // [rsp+20h] [rbp-40h] float v34; // [rsp+28h] [rbp-38h] float v35; // [rsp+2Ch] [rbp-34h] float v36; // [rsp+30h] [rbp-30h] __int16 v37; // [rsp+34h] [rbp-2Ch] BYREF char v38; // [rsp+36h] [rbp-2Ah] v34 = a9; v36 = a8; v35 = a7; v12 = a1; v37 = a4; v38 = BYTE2(a4); sub_100278370(v32, a3, a2); *(_QWORD *)&v15 = GameManager::sharedState(v32, a3, v14).u64[0]; if ( !*(_BYTE *)(v16 + 925) ) { v33 = a1; sub_1002782D0(v30, v32); sub_1002782D0(v31, &qword_100BE1268); v17 = cocos2d::CCLightning::lightningWithStrikePoint(v30, v31, v36); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 184LL))(v17, a2); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v17 + 976LL))(v17, &v37); *(float *)(v17 + 368) = v35; *(_WORD *)(v17 + 372) = 257; *(_QWORD *)&v15 = LODWORD(v34); *(float *)(v17 + 380) = v34; if ( a5 ) *(_DWORD *)(v17 + 348) = a5; v12 = v33; (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(v33 + 3920) + 464LL))( *(_QWORD *)(v33 + 3920), v17, 0); } if ( a6 ) { (*(void (__fastcall **)(_QWORD, __int64, double))(**(_QWORD **)(v12 + 12552) + 344LL))( *(_QWORD *)(v12 + 12552), 1, v15); v18 = cocos2d::CCDelayTime::create(0.079999998); if ( a5 ) { v19 = cocos2d::CCHide::create(); v23 = sub_10039EB60(v18, v19, 0, v20, v21, v22); } else { v24 = v12; v25 = cocos2d::CCBlink::create(1, 0.12); v26 = cocos2d::CCHide::create(); v27 = v25; v12 = v24; v23 = sub_10039EB60(v18, v27, v26, 0, v28, v29); } cocos2d::CCNode::runAction(*(_QWORD *)(v12 + 12552), v23); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source