// // GJBaseGameLayer::lightningFlash from 0x479838 to 0x4798fe (198 bytes) // // 1 xrefs: // > PlayerObject::togglePlayerScale @ 0x344ac6 // // 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 GJBaseGameLayer::lightningFlash(GJBaseGameLayer *a1, cocos2d::CCPoint a2, cocos2d::ccColor3B a3) { float x; // r8 cocos2d::CCDirector *v5; // r0 float v6; // r0 float y; // s17 float v8; // s16 float v9; // r7 float v10; // r0 int y_low; // [sp+1Ch] [bp-2Ch] cocos2d::CCSize v12; // [sp+24h] [bp-24h] BYREF cocos2d::CCPoint v13; // [sp+2Ch] [bp-1Ch] BYREF cocos2d::CCPoint v14; // [sp+34h] [bp-14h] BYREF cocos2d::CCPoint v15; // [sp+3Ch] [bp-Ch] BYREF x = a2.x; y_low = LODWORD(a2.y); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v12, v5); v6 = randRange(*(float *)LODWORD(x) - 50.0, *(float *)LODWORD(x) + 100.0); y = a1->m_gameState.m_cameraPosition.y; v8 = v12.height + 50.0; v9 = v6; v10 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::CCPoint(&v13, v9, y + (float)(v8 / v10)); cocos2d::CCPoint::CCPoint(&v14, &v13); cocos2d::CCPoint::CCPoint(&v15, (const cocos2d::CCPoint *)LODWORD(x)); GJBaseGameLayer::lightningFlash((int)a1, &v14, (int)&v15, y_low, 5.0, 1056964608, 0, 1, 1.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source