//
// EffectGameObject::playTriggerEffect from 0x3e8c4c to 0x3e8e1a (462 bytes)
//
// 1 xrefs:
// > PlayerObject::ringJump @ 0x34e83a
//
// 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 EffectGameObject::playTriggerEffect(EffectGameObject *a1)
{
int m_objectID; // r3
GameManager *v3; // r0
GameManager *v4; // r0
int v5; // r5
int v6; // r6
float v7; // r0
int v8; // r2
float v9; // s15
float v10; // s14
float v11; // s16
float v12; // s17
EffectGameObject *m_colorSprite; // r7
cocos2d::CCScaleTo *v14; // r0
cocos2d::CCEaseExponentialOut *v15; // r0
float v16; // s15
float v17; // s14
cocos2d::CCSequence *v18; // r9
cocos2d::CCScaleTo *v19; // r0
cocos2d::CCEaseInOut *v20; // r8
cocos2d::CCAction *v21; // r0
int v22; // r0
m_objectID = a1->m_objectID;
if ( m_objectID != 3643 )
{
if ( m_objectID != 1594 || (v3 = GameManager::sharedState(), !GameManager::getGameVariable(v3, "0141")) )
{
if ( a1->m_objectID == 1594 || (v4 = GameManager::sharedState(), !GameManager::getGameVariable(v4, "0140")) )
{
v5 = 0;
v6 = 1;
v7 = COERCE_FLOAT(((int (__fastcall *)(EffectGameObject *))a1->getScale)(a1));
v8 = a1->m_objectID;
a1->m_triggerEffectPlaying = 1;
v9 = 2.1;
if ( v8 != 1594 )
v9 = 1.7;
v10 = 1.1;
if ( v8 != 1594 )
v10 = 0.7;
v11 = (float)(fabsf(v7) / a1->m_scaleX) + v10;
if ( v9 <= v11 )
v11 = v9;
if ( a1->m_fScaleX >= 0.0 )
v12 = v11;
else
v12 = -v11;
while ( 1 )
{
if ( v5 == 1 )
{
if ( a1->m_colorSpriteLocked )
goto LABEL_33;
m_colorSprite = (EffectGameObject *)a1->m_colorSprite;
if ( !m_colorSprite )
goto LABEL_18;
}
else if ( v5 == 2 )
{
m_colorSprite = (EffectGameObject *)a1->m_glowSprite;
if ( !m_colorSprite )
return;
}
else
{
m_colorSprite = a1;
}
cocos2d::CCNode::stopAllActions(m_colorSprite);
v14 = cocos2d::CCScaleTo::create(0.15, v12 * a1->m_scaleX);
v15 = cocos2d::CCEaseExponentialOut::create(v14);
if ( a1->m_hasNoAudioScale )
v16 = 1.0;
else
v16 = 0.4;
if ( v12 >= 0.0 )
v17 = v16;
else
v17 = -v16;
v18 = (cocos2d::CCSequence *)v15;
v19 = cocos2d::CCScaleTo::create(0.25, v17 * a1->m_scaleX);
v20 = cocos2d::CCEaseInOut::create(v19, 2.0);
if ( v5 )
{
v21 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v18, v20, 0);
}
else
{
v22 = cocos2d::CCCallFunc::create(a1, EffectGameObject::triggerEffectFinished, 0);
v21 = (cocos2d::CCAction *)cocos2d::CCSequence::create(
v18,
v20,
v22,
0,
EffectGameObject::triggerEffectFinished,
0);
}
cocos2d::CCNode::runAction(m_colorSprite, v21);
LABEL_33:
if ( v6 == 3 )
return;
LABEL_18:
++v5;
++v6;
}
}
}
}
}