// // EffectGameObject::playTriggerEffect from 0x100385078 to 0x100385284 (524 bytes) // // 1 xrefs: // > PlayerObject::ringJump @ 0x10022835c // // 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 __fastcall EffectGameObject::playTriggerEffect(EffectGameObject *a1) { int m_objectID; // w8 GameManager *v3; // x0 GameManager *v4; // x0 int v5; // w24 float v6; // s0 float v7; // s0 float v8; // s9 float v9; // s10 cocos2d::CCSprite **p_m_glowSprite; // x8 EffectGameObject *v11; // x21 cocos2d::CCScaleTo *v12; // x0 cocos2d::CCEaseExponentialOut *v13; // x22 float v14; // s0 float v15; // s2 cocos2d::CCScaleTo *v16; // x0 __int64 v17; // x1 __int64 v18; // x2 __int64 v19; // x3 __int64 v20; // x4 __int64 v21; // x5 __int64 v22; // x6 __int64 v23; // x7 char v24; // w23 cocos2d::CCSequence *v25; // x0 cocos2d::SEL_CallFunc v26; // 0:x1.16 m_objectID = a1->m_objectID; if ( m_objectID != 3643 ) { if ( m_objectID == 1594 ) { v3 = GameManager::sharedState(); if ( GameManager::getGameVariable(v3, "0141") ) return; if ( a1->m_objectID == 1594 ) { LABEL_6: ((void (__fastcall *)(EffectGameObject *))a1->getScale)(a1); v5 = 0; v7 = (float)(fabsf(v6) / a1->m_scaleX) + flt_100645910[a1->m_objectID == 1594]; if ( flt_100645908[a1->m_objectID == 1594] <= v7 ) v7 = flt_100645908[a1->m_objectID == 1594]; if ( a1->m_fScaleX >= 0.0 ) v8 = v7; else v8 = -v7; if ( a1->m_fScaleY >= 0.0 ) v9 = v7; else v9 = -v7; a1->m_triggerEffectPlaying = 1; while ( 1 ) { p_m_glowSprite = &a1->m_glowSprite; if ( v5 == 2 ) break; v11 = a1; if ( v5 != 1 ) goto LABEL_19; p_m_glowSprite = &a1->m_colorSprite; if ( !a1->m_colorSpriteLocked ) break; LABEL_31: if ( ++v5 == 3 ) return; } v11 = (EffectGameObject *)*p_m_glowSprite; LABEL_19: if ( v11 ) { cocos2d::CCNode::stopAllActions(v11); v12 = cocos2d::CCScaleTo::create(0.15, v8 * a1->m_scaleX, v9 * a1->m_scaleY); v13 = cocos2d::CCEaseExponentialOut::create(v12); if ( a1->m_hasNoAudioScale ) v14 = 1.0; else v14 = 0.4; if ( v8 >= 0.0 ) v15 = v14; else v15 = -v14; if ( v9 < 0.0 ) v14 = -v14; v16 = cocos2d::CCScaleTo::create(0.25, a1->m_scaleX * v15, a1->m_scaleY * v14); v24 = (unsigned __int8)cocos2d::CCEaseInOut::create(v16, 2.0); if ( !v5 ) { v26.ptr = (void (*)(void))EffectGameObject::triggerEffectFinished; v26.adj = 0; cocos2d::CCCallFunc::create(a1, v26); } v25 = sub_10018A494(v13, v17, v18, v19, v20, v21, v22, v23, v24); cocos2d::CCNode::runAction(v11, v25); } goto LABEL_31; } } v4 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v4, "0140") ) goto LABEL_6; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source