//
// TriggerControlGameObject::customObjectSetup from 0x1404c3230 to 0x1404c331a (234 bytes)
//
// 2 xrefs:
// > ??> @ 0x140615730
// > ??> @ 0x1406dcfc8
//
// 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 TriggerControlGameObject::customObjectSetup(
TriggerControlGameObject *a1,
std::vector *a2,
std::vector *a3)
{
GJActionCommand v6; // ebx
int v7; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v9; // ecx
int v10; // eax
std::_Vector_val>::pointer v11; // rcx
std::_Vector_val>::pointer v12; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( !*((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )
{
v6 = Stop;
v7 = 0;
LABEL_8:
v9 = v7;
goto LABEL_9;
}
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 51;
if ( a2->_Mypair._Myval2._Myfirst[51].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);
v6 = Stop;
v9 = 9999;
if ( v7 < 0 )
v7 = 0;
if ( v7 <= 9999 )
goto LABEL_8;
LABEL_9:
a1->m_targetGroupID = v9;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 535) )
{
v11 = a2->_Mypair._Myval2._Myfirst + 535;
if ( a2->_Mypair._Myval2._Myfirst[535].m_data.m_capacity > 0xF )
v11 = (std::_Vector_val>::pointer)v11->m_data.m_bigStorage;
v10 = atoi(v11->m_data.m_smallStorage._Elems);
}
else
{
v10 = 0;
}
a1->m_targetControlID = v10 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 580) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 580;
if ( a2->_Mypair._Myval2._Myfirst[580].m_data.m_capacity > 0xF )
v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage;
v6 = atoi(v12->m_data.m_smallStorage._Elems);
}
a1->m_customTriggerValue = v6;
TriggerControlGameObject::updateTriggerControlFrame(a1);
}