//
// GameObject::isTrigger from 0x64ac70 to 0x64aee8 (632 bytes)
//
// 7 xrefs:
// > GameObject::customSetup @ 0x64e148
// > EditorUI::onTargetIDChange @ 0x68f13c
// > EditorUI::onTargetIDChange @ 0x68f194
// > EditorUI::scaleObjects @ 0x6b7b44
// > EditorUI::updateScaleControl @ 0x6ba4fc
// > EditorUI::updateScaleControl @ 0x6ba5cc
// > ??> @ 0x3d9e0
//
// 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
//
bool GameObject::isTrigger(GameObject *a1)
{
int m_objectID; // w0
m_objectID = a1->m_objectID;
if ( m_objectID > 1935 )
{
if ( m_objectID > 3024 )
{
if ( m_objectID > 3615 )
{
if ( m_objectID > 3641 )
{
if ( m_objectID != 3655 && (m_objectID < 3655 || (unsigned int)(m_objectID - 3660) > 2) )
return 0;
}
else if ( m_objectID < 3640 && (unsigned int)(m_objectID - 3617) > 3 )
{
return 0;
}
return 1;
}
if ( m_objectID >= 3612 || m_objectID == 3033 )
return 1;
if ( m_objectID > 3033 )
{
if ( m_objectID == 3600 )
return 1;
if ( m_objectID >= 3600 )
return (unsigned int)(m_objectID - 3602) <= 7;
return 0;
}
return (unsigned int)(m_objectID - 3029) <= 2;
}
else
{
if ( m_objectID >= 3006 )
return 1;
if ( m_objectID > 2905 )
{
if ( m_objectID <= 2917 )
return m_objectID >= 2909 || m_objectID == 2907;
if ( m_objectID < 2919 )
return 0;
return m_objectID <= 2925 || m_objectID == 2999;
}
else
{
if ( m_objectID >= 2903 )
return 1;
if ( m_objectID <= 2068 )
return m_objectID >= 2066 || m_objectID == 2015 || m_objectID == 2062;
return (unsigned int)(m_objectID - 2899) <= 2;
}
}
}
else
{
if ( m_objectID >= 1934 || m_objectID == 1520 )
return 1;
if ( m_objectID > 1520 )
{
if ( m_objectID > 1815 )
{
if ( m_objectID <= 1917 )
return m_objectID >= 1912 || (unsigned int)(m_objectID - 1817) <= 2;
return (unsigned int)(m_objectID - 1931) <= 1;
}
else
{
if ( m_objectID >= 1814 )
return 1;
if ( m_objectID <= 1613 )
return m_objectID >= 1611 || m_objectID == 1585 || m_objectID == 1595;
if ( m_objectID == 1616 )
return 1;
if ( m_objectID < 1616 )
return 0;
return (unsigned int)(m_objectID - 1811) <= 1;
}
}
else
{
if ( m_objectID <= 901 )
{
if ( m_objectID < 899 )
{
if ( m_objectID <= 59 )
return m_objectID >= 55 || (unsigned int)(m_objectID - 22) <= 0xB;
if ( m_objectID != 105 && m_objectID != 744 )
return 0;
}
return 1;
}
if ( m_objectID == 1049 )
return 1;
if ( m_objectID <= 1049 )
{
if ( m_objectID == 915 )
return 1;
if ( m_objectID >= 915 )
return (unsigned int)(m_objectID - 1006) <= 1;
return 0;
}
if ( m_objectID == 1268 )
return 1;
if ( m_objectID < 1268 )
return 0;
return (unsigned int)(m_objectID - 1346) <= 1;
}
}
}