// // EnhancedGameObject::customObjectSetup from 0x1401a4c40 to 0x1401a4f65 (805 bytes) // // 7 xrefs: // > ParticleGameObject::customObjectSetup @ 0x14049fcae // > SpecialAnimGameObject::customObjectSetup @ 0x1404a1a88 // > EffectGameObject::customObjectSetup @ 0x1404a8b20 // > @ 0x14055e698 // > @ 0x140617388 // > @ 0x1406cc090 // > @ 0x1406cc09c // // 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 EnhancedGameObject::customObjectSetup( EnhancedGameObject *a1, std::vector *a2, std::vector *a3) { int v3; // edi int v7; // eax std::_Vector_val>::pointer m_bigStorage; // rcx int v9; // eax std::_Vector_val>::pointer v10; // rcx double v11; // xmm6_8 int v12; // eax std::_Vector_val>::pointer v13; // rcx double v14; // xmm0_8 std::_Vector_val>::pointer v15; // rcx float m_rotationAngle; // xmm1_4 float v17; // xmm0_4 int v18; // eax std::_Vector_val>::pointer v19; // rcx std::_Vector_val>::pointer v20; // rcx float v21; // xmm0_4 int v22; // eax std::_Vector_val>::pointer v23; // rcx bool m_animateOnTrigger; // cl int v25; // eax std::_Vector_val>::pointer v26; // rcx cocos2d::CCRGBAProtocol_vtbl *v27; // rax int v28; // eax std::_Vector_val>::pointer v29; // rcx int v30; // eax std::_Vector_val>::pointer v31; // rcx int v32; // eax std::_Vector_val>::pointer v33; // rcx std::_Vector_val>::pointer v34; // rcx v3 = 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 99) ) { m_bigStorage = a2->_Mypair._Myval2._Myfirst + 99; if ( a2->_Mypair._Myval2._Myfirst[99].m_data.m_capacity > 0xF ) m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage; v7 = atoi(m_bigStorage->m_data.m_smallStorage._Elems); } else { v7 = 0; } a1->m_isMultiActivate = v7 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 444) ) { v10 = a2->_Mypair._Myval2._Myfirst + 444; if ( a2->_Mypair._Myval2._Myfirst[444].m_data.m_capacity > 0xF ) v10 = (std::_Vector_val>::pointer)v10->m_data.m_bigStorage; v9 = atoi(v10->m_data.m_smallStorage._Elems); } else { v9 = 0; } v11 = 0.0; a1->m_isNoMultiActivate = v9 != 0; if ( a1->m_hasCustomRotation ) { if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 98) ) { v13 = a2->_Mypair._Myval2._Myfirst + 98; if ( a2->_Mypair._Myval2._Myfirst[98].m_data.m_capacity > 0xF ) v13 = (std::_Vector_val>::pointer)v13->m_data.m_bigStorage; v12 = atoi(v13->m_data.m_smallStorage._Elems); } else { v12 = 0; } a1->m_disableRotation = v12 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 97) ) { v15 = a2->_Mypair._Myval2._Myfirst + 97; if ( a2->_Mypair._Myval2._Myfirst[97].m_data.m_capacity > 0xF ) v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage; v14 = atof(v15->m_data.m_smallStorage._Elems); } else { v14 = 0.0; } m_rotationAngle = a1->m_rotationAngle; v17 = v14; a1->m_rotationSpeed = v17; EnhancedGameObject::createRotateAction(a1, m_rotationAngle, 0); } if ( a1->m_hasCustomAnimation ) { if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 106) ) { v19 = a2->_Mypair._Myval2._Myfirst + 106; if ( a2->_Mypair._Myval2._Myfirst[106].m_data.m_capacity > 0xF ) v19 = (std::_Vector_val>::pointer)v19->m_data.m_bigStorage; v18 = atoi(v19->m_data.m_smallStorage._Elems); } else { v18 = 0; } a1->m_animationRandomizedStart = v18 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 107) ) { v20 = a2->_Mypair._Myval2._Myfirst + 107; if ( a2->_Mypair._Myval2._Myfirst[107].m_data.m_capacity > 0xF ) v20 = (std::_Vector_val>::pointer)v20->m_data.m_bigStorage; v11 = atof(v20->m_data.m_smallStorage._Elems); } v21 = v11; a1->m_animationSpeed = v21; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 123) ) { v23 = a2->_Mypair._Myval2._Myfirst + 123; if ( a2->_Mypair._Myval2._Myfirst[123].m_data.m_capacity > 0xF ) v23 = (std::_Vector_val>::pointer)v23->m_data.m_bigStorage; v22 = atoi(v23->m_data.m_smallStorage._Elems); } else { v22 = 0; } m_animateOnTrigger = v22 != 0; a1->m_animateOnTrigger = v22 != 0; if ( !a1->m_animationShouldUseSpeed ) { if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 122) ) { v26 = a2->_Mypair._Myval2._Myfirst + 122; if ( a2->_Mypair._Myval2._Myfirst[122].m_data.m_capacity > 0xF ) v26 = (std::_Vector_val>::pointer)v26->m_data.m_bigStorage; v25 = atoi(v26->m_data.m_smallStorage._Elems); m_animateOnTrigger = a1->m_animateOnTrigger; } else { v25 = 0; } a1->m_animationShouldUseSpeed = v25 != 0; } if ( m_animateOnTrigger ) { a1->m_animationTriggered = 0; v27 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable; *(_QWORD *)&a1->m_unk540 = 0; *(_QWORD *)&a1->m_animationRandomizedStartValue = 0; a1->m_isDisabled2 = 1; v27->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0); } if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 126) ) { v29 = a2->_Mypair._Myval2._Myfirst + 126; if ( a2->_Mypair._Myval2._Myfirst[126].m_data.m_capacity > 0xF ) v29 = (std::_Vector_val>::pointer)v29->m_data.m_bigStorage; v28 = atoi(v29->m_data.m_smallStorage._Elems); } else { v28 = 0; } a1->m_disableDelayedLoop = v28 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 214) ) { v31 = a2->_Mypair._Myval2._Myfirst + 214; if ( a2->_Mypair._Myval2._Myfirst[214].m_data.m_capacity > 0xF ) v31 = (std::_Vector_val>::pointer)v31->m_data.m_bigStorage; v30 = atoi(v31->m_data.m_smallStorage._Elems); } else { v30 = 0; } a1->m_animateOnlyWhenActive = v30 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 462) ) { v33 = a2->_Mypair._Myval2._Myfirst + 462; if ( a2->_Mypair._Myval2._Myfirst[462].m_data.m_capacity > 0xF ) v33 = (std::_Vector_val>::pointer)v33->m_data.m_bigStorage; v32 = atoi(v33->m_data.m_smallStorage._Elems); } else { v32 = 0; } a1->m_singleFrame = v32; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 592) ) { v34 = a2->_Mypair._Myval2._Myfirst + 592; if ( a2->_Mypair._Myval2._Myfirst[592].m_data.m_capacity > 0xF ) v34 = (std::_Vector_val>::pointer)v34->m_data.m_bigStorage; v3 = atoi(v34->m_data.m_smallStorage._Elems); } a1->m_animationOffset = v3 != 0; } }