//
// ParticleGameObject::updateAnimateOnTrigger from 0x1404a16b0 to 0x1404a1723 (115 bytes)
//
// 2 xrefs:
// > ??> @ 0x14060da98
// > ??> @ 0x1406dc6ec
//
// 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 ParticleGameObject::updateAnimateOnTrigger(ParticleGameObject *a1, bool a2)
{
cocos2d::CCParticleSystemQuad *m_particle; // rcx
if ( a1->m_hasCustomAnimation && a1->m_animateOnTrigger )
{
a1->m_animationTriggered = 0;
*(_QWORD *)&a1->m_unk540 = 0;
*(_QWORD *)&a1->m_animationRandomizedStartValue = 0;
a1->m_isDisabled2 = 1;
a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);
m_particle = a1->m_particle;
if ( m_particle )
{
cocos2d::CCParticleSystem::resetSystem(m_particle);
cocos2d::CCParticleSystem::stopSystem(a1->m_particle);
}
}
}