// // cocos2d::CCFollow::step from 0xab3cf8 to 0xab3e24 (300 bytes) // // 2 xrefs: // > @ 0x8b4a0 // > @ 0x11fb4b8 // // 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::CCFollow::step(cocos2d::CCFollow *a1, float a2) { cocos2d::CCNode *v3; // x22 void (__fastcall *v4)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 __int64 v5; // x0 __int64 v6; // x0 cocos2d::CCNode *m_pTarget; // x22 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 float v9; // s8 float v10; // s0 __int64 v11; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v12; // [xsp+60h] [xbp+60h] BYREF if ( LOBYTE(a1[1].m_uID) ) { if ( !BYTE1(a1[1].m_uID) ) { v6 = (*((__int64 (__fastcall **)(cocos2d::CCFollow_vtbl *, float))a1[1].copyWithZone + 24))(a1[1].__vftable, a2); cocos2d::CCPoint::operator-(&v11, &a1[1].m_nLuaID, v6); m_pTarget = a1->m_pTarget; setPosition = m_pTarget->setPosition; v9 = cocos2d::clampf(*(float *)&v11, *(float *)&a1[1].m_eObjType, *(float *)&a1[1].m_uIndexInArray); v10 = cocos2d::clampf(*((float *)&v11 + 1), *(float *)&a1[1].m_unknown2, *(float *)&a1[1].m_uUnknown); cocos2d::CCPoint::CCPoint(&v12, v9, v10); setPosition(m_pTarget, &v12); } } else { v3 = a1->m_pTarget; v4 = v3->setPosition; v5 = (*((__int64 (__fastcall **)(cocos2d::CCFollow_vtbl *, float))a1[1].copyWithZone + 24))(a1[1].__vftable, a2); cocos2d::CCPoint::operator-(&v12, &a1[1].m_nLuaID, v5); v4(v3, &v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source