// // GJBaseGameLayer::generatePickupAnimRandVal from 0x48c81c to 0x48c916 (250 bytes) // // 1 xrefs: // > GameObject::playDestroyObjectAnim @ 0x52b156 // // 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::generatePickupAnimRandVal(GJBaseGameLayer *a1, GameObject *a2, float *a3, float *a4) { const cocos2d::CCPoint *v8; // r7 const cocos2d::CCPoint *v9; // r0 float x; // s14 std::map,std::pair> *p_m_destroyObjectValues; // r7 std::_rb_tree_base *m_parent; // r4 std::_rb_tree_base *p_m_header; // r11 std::_rb_tree_base *v14; // r5 std::_rb_tree_base *m_right; // r3 int v16; // r2 int v17; // s16 int v18; // s17 int v19; // r2 float *v20; // r0 int v21; // r2 _DWORD v22[2]; // [sp+4h] [bp-10h] BYREF v8 = a2->getPosition(a2); v9 = a2->getPosition(a2); x = v8->x; p_m_destroyObjectValues = &a1->m_destroyObjectValues; m_parent = a1->m_destroyObjectValues.m_header.m_parent; p_m_header = &a1->m_destroyObjectValues.m_header; v14 = &a1->m_destroyObjectValues.m_header; v22[0] = (int)x; v22[1] = (int)v9->y; while ( m_parent ) { if ( std::operator<(&m_parent[1].m_isblack, v22) ) { m_right = m_parent->m_right; m_parent = v14; } else { m_right = m_parent->m_left; } v14 = m_parent; m_parent = m_right; } if ( v14 == p_m_header || std::operator<(v22, &v14[1].m_isblack) ) { v17 = rand(); v18 = rand(); v20 = (float *)std::map,std::pair>::operator[](p_m_destroyObjectValues, v22, v19); v20[1] = (float)v18 * 4.6566e-10; *v20 = (float)((float)((float)v17 * 4.6566e-10) + (float)((float)v17 * 4.6566e-10)) - 1.0; } *a3 = *(float *)std::map,std::pair>::operator[](p_m_destroyObjectValues, v22, v16); *a4 = *(float *)(std::map,std::pair>::operator[](p_m_destroyObjectValues, v22, v21) + 4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source