// // OpacityEffectAction::step from 0x4994ac to 0x49951a (110 bytes) // // 2 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x36de58 // > GJEffectManager::updateOpacityEffects @ 0x49e640 // // 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 OpacityEffectAction::step(OpacityEffectAction *a1, float a2) { float m_duration; // s13 float v3; // s15 float m_deltaTimeRelated; // s14 float v5; // s15 float v6; // s12 float m_fromValue; // s14 float v8; // s11 if ( !a1->m_finished && !a1->m_disabled ) { m_duration = a1->m_duration; v3 = a2 + a1->m_deltaTime; m_deltaTimeRelated = a1->m_deltaTimeRelated; a1->m_deltaTime = v3; v5 = v3 + m_deltaTimeRelated; if ( v5 >= m_duration ) { v6 = 1.0; } else if ( v5 <= 0.0 ) { v6 = 0.0; } else { v6 = v5 / m_duration; } m_fromValue = a1->m_fromValue; v8 = a1->m_toValue - m_fromValue; a1->m_finished = v5 >= m_duration; a1->m_currentValue = m_fromValue + (float)(v8 * v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source