// // PulseEffectAction::step from 0x1002d93b0 to 0x1002d9422 (114 bytes) // // 0 xrefs: // // 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 PulseEffectAction::step(PulseEffectAction *a1, float a2) { float v2; // xmm0_4 float v3; // xmm0_4 float m_fadeInTime; // xmm1_4 float v5; // xmm3_4 float m_holdTime; // xmm2_4 float m_fadeOutTime; // xmm4_4 if ( !a1->m_disabled ) { v2 = a2 + a1->m_deltaTime; a1->m_deltaTime = v2; v3 = v2 + a1->m_startTime; m_fadeInTime = a1->m_fadeInTime; if ( m_fadeInTime <= v3 ) { m_holdTime = a1->m_holdTime; if ( (float)(m_fadeInTime + m_holdTime) >= v3 ) { v5 = 1.0; } else { m_fadeOutTime = a1->m_fadeOutTime; v5 = 0.0; if ( m_fadeOutTime > 0.0 ) v5 = 1.0 - (float)((float)((float)(v3 - m_fadeInTime) - m_holdTime) / m_fadeOutTime); } } else { v5 = v3 / m_fadeInTime; } a1->m_currentValue = v5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source