// // drawLightning from 0x690888 to 0x690ac8 (576 bytes) // // 5 xrefs: // > drawLightning @ 0x690a14 // > drawLightning @ 0x690a50 // > cocos2d::CCLightning::draw @ 0x690b80 // > cocos2d::CCLightning::draw @ 0x690bcc // > @ 0xde688 // // This function is hookable on this platform (idp: arm, 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:50:35 +0000 // float *__usercall drawLightning@( const cocos2d::CCPoint *a1@, const cocos2d::CCPoint *a2@, int a3@, unsigned int a4@, unsigned __int64 a5@, __int64 a6@, _DWORD *a7@, float *a8@) { int v14; // w2 float v15; // s0 float v16; // s0 unsigned __int64 v19[2]; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v20[8]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v21; // [xsp+D0h] [xbp+D0h] BYREF v19[0] = a5; cocos2d::CCPoint::operator+(&v21, a1, a2); cocos2d::CCPoint::operator*(&v21, 0.5); v14 = a3; if ( a3 < (int)a4 ) { cocos2d::CCPoint::operator=(a6 + 8LL * (unsigned int)*a7, a1); cocos2d::CCPoint::operator=(a6 + 8LL * (unsigned int)(*a7 + 1), a2); *a7 += 2; } else { v15 = *a8 + ((double)((int)getNextRandom(v19) % 101) / 100.0 - 0.5) * (double)v14; *a8 = v15; v16 = a8[1] + (double)a3 * ((double)((int)getNextRandom(v19) % 101) / 100.0 - 0.5); a8[1] = v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, (const cocos2d::CCPoint *)a8); drawLightning(v20, &v21, (unsigned int)(a3 / 2), a4, v19[0], a6, a7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, (const cocos2d::CCPoint *)a8); drawLightning(v20, &v21, (unsigned int)(a3 / 2), a4, v19[0], a6, a7); } return a8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source