// // cocos2d::CCLightning::draw from 0x575658 to 0x575790 (312 bytes) // // 2 xrefs: // > @ 0x85ec0 // > @ 0x11387c8 // // 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 cocos2d::CCLightning::draw(cocos2d::CCLightning *a1) { std::uint32_t *p_m_numPoints; // x23 float m_opacityModify; // s1 GLubyte b; // w2 float m_opacity; // s0 GLubyte r; // w0 GLubyte g; // w1 cocos2d::CCPoint v8; // [xsp+40h] [xbp+40h] BYREF cocos2d::CCPoint v9; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint v10; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v11; // [xsp+60h] [xbp+60h] BYREF p_m_numPoints = &a1->m_numPoints; m_opacityModify = a1->m_opacityModify; b = a1->m_color.b; m_opacity = (float)a1->m_opacity; r = a1->m_color.r; g = a1->m_color.g; a1->m_numPoints = 0; cocos2d::ccDrawColor4B(r, g, b, (unsigned int)(float)(m_opacity * m_opacityModify)); glLineWidth(); cocos2d::ccGLBlendFunc((unsigned int)&elf_hash_bucket[66] + 2, 1u); cocos2d::CCPoint::CCPoint(&v10, 0.0, 0.0); cocos2d::CCPoint::CCPoint(&v11, &a1->m_strikePoint); drawLightning( &v10, &v11, a1->m_displacement, a1->m_minDisplacement, a1->m_seed, (__int64)a1->m_lightningPoints, p_m_numPoints, &v9); if ( a1->m_split ) { cocos2d::CCPoint::CCPoint(&v10, &v9); cocos2d::CCPoint::CCPoint(&v11, &a1->m_strikePoint2); drawLightning( &v10, &v11, a1->m_displacement / 2, a1->m_minDisplacement, a1->m_seed, (__int64)a1->m_lightningPoints, p_m_numPoints, &v8); } cocos2d::ccDrawLines(a1->m_lightningPoints->__elems_, a1->m_numPoints); }
GD Web Decomp Icon

GD Web Decomp

Raw Source