// // ParticleGameObject::updateSyncedAnimation from 0x100381e18 to 0x100381f48 (304 bytes) // // 1 xrefs: // > @ 0x1007f9808 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall ParticleGameObject::updateSyncedAnimation(ParticleGameObject *a1, float a2, int a3) { cocos2d::CCParticleSystemQuad *m_particle; // x0 float m_respawnResult; // s0 float v7; // s9 float v8; // s10 float v9; // s0 float m_fRespawn; // s1 unsigned __int64 v11; // x10 float v12; // s1 float v13; // s0 m_particle = a1->m_particle; if ( m_particle ) { if ( a1->m_animateOnTrigger ) { if ( a1->m_animationTriggered ) { cocos2d::CCParticleSystem::resetSystem(m_particle); a1->m_animationTriggered = 0; } } else { m_respawnResult = a1->m_respawnResult; if ( m_respawnResult < 0.0 ) { v7 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))m_particle->getLife)( m_particle, *(_QWORD *)&a3); v8 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getLifeVar)(a1->m_particle); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getDuration)(a1->m_particle); m_particle = a1->m_particle; m_fRespawn = m_particle->m_fRespawn; v11 = ((unsigned __int64)(214013 * qword_10086E3E0 + 2531011) >> 16) & 0x7FFF; qword_10086E3E0 = 214013 * qword_10086E3E0 + 2531011; v12 = fmaxf( m_fRespawn + (float)((float)((float)((float)((float)v11 / 32767.0) * 2.0) + -1.0) * m_particle->m_fRespawnVar), 0.0); if ( a1->m_startingRespawn ) { a1->m_startingRespawn = 0; v13 = a2; } else { v13 = (float)((float)(v7 + v8) + v9) + a2; } m_respawnResult = v12 + v13; a1->m_respawnResult = m_respawnResult; } if ( m_respawnResult < a2 ) { cocos2d::CCParticleSystem::resetSystem(m_particle); a1->m_respawnResult = -1.0; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source