// // ShaderLayer::triggerShockWave from 0x140483d90 to 0x14048434a (1466 bytes) // // 7 xrefs: // > GJBaseGameLayer::triggerShaderCommand @ 0x140221268 // > @ 0x1406a63a8 // > @ 0x1406a63c4 // > @ 0x1406a63dc // > @ 0x1406a63f0 // > @ 0x1406a6400 // > @ 0x1406dbbc4 // // 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 ShaderLayer::triggerShockWave( ShaderLayer *a1, float a2, float a3, float a4, float a5, float a6, float a7, float a8, bool a9, float a10, float a11, float a12, int a13, bool a14, bool a15, bool a16, float a17, float a18, bool a19, float a20, int a21, float a22) { ShaderLayer *v22; // rbx double m_time; // xmm4_8 float v26; // xmm2_4 float v27; // xmm6_4 float m_shockWaveSpeed; // xmm1_4 float m_shockWaveThickness; // xmm1_4 float m_shockWaveStrength; // xmm1_4 float m_shockWaveWidth; // xmm1_4 float m_shockWaveFadeIn; // xmm1_4 float m_shockWaveFadeOut; // xmm1_4 float m_shockWaveInner; // xmm1_4 float x; // xmm1_4 float y; // xmm1_4 float m_shockWaveOuter; // xmm1_4 float m_shockWaveMaxSize; // xmm1_4 float m_shockWaveTimeOffset; // xmm1_4 v22 = a1; m_time = a1->m_state.m_time; if ( a19 ) { v27 = a20; a1->m_state.m_shockWaveTime = (float)((float)(m_time - a1->m_state.m_shockWaveStartTime) * a1->m_state.m_shockWaveSpeed) + a1->m_state.m_shockWaveTime; } else { v27 = 0.0; a1->m_state.m_shockWaveInvert = a9; a1->m_state.m_shockWaveTargetID = a13; a1->m_state.m_shockWaveTarget = a14; a1->m_state.m_shockWaveCenterMoving = a15; a1->m_state.m_shockWaveRelative = a16; a1->m_state.m_shockWaveTime = 0.0; a1->m_state.m_shockWaveCenterDirty = 1; } v26 = m_time; a1->m_state.m_shockWaveStartTime = v26; if ( a2 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveSpeed = 0.0; } else { if ( a1->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&a1->m_state, 50); m_shockWaveSpeed = v22->m_state.m_shockWaveSpeed; a1 = v22; } ShaderLayer::tweenValue(a1, m_shockWaveSpeed, a2, 50, v27, a21, a22); } if ( a3 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveThickness = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 51); m_shockWaveThickness = v22->m_state.m_shockWaveThickness; } ShaderLayer::tweenValue(v22, m_shockWaveThickness, a3, 51, v27, a21, a22); } if ( a4 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveStrength = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 52); m_shockWaveStrength = v22->m_state.m_shockWaveStrength; } ShaderLayer::tweenValue(v22, m_shockWaveStrength, a4, 52, v27, a21, a22); } if ( a5 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveWidth = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 53); m_shockWaveWidth = v22->m_state.m_shockWaveWidth; } ShaderLayer::tweenValue(v22, m_shockWaveWidth, a5, 53, v27, a21, a22); } if ( a6 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveFadeIn = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 54); m_shockWaveFadeIn = v22->m_state.m_shockWaveFadeIn; } ShaderLayer::tweenValue(v22, m_shockWaveFadeIn, a6, 54, v27, a21, a22); } if ( a7 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveFadeOut = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 55); m_shockWaveFadeOut = v22->m_state.m_shockWaveFadeOut; } ShaderLayer::tweenValue(v22, m_shockWaveFadeOut, a7, 55, v27, a21, a22); } if ( a10 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveInner = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 56); m_shockWaveInner = v22->m_state.m_shockWaveInner; } ShaderLayer::tweenValue(v22, m_shockWaveInner, a10, 56, v27, a21, a22); } if ( a11 != -909190.0 ) { if ( v27 <= 0.0 ) { x = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 57); x = v22->m_state.m_shockWaveScreenOffset.x; } ShaderLayer::tweenValue(v22, x, a11, 57, v27, a21, a22); } if ( a12 != -909190.0 ) { if ( v27 <= 0.0 ) { y = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 58); y = v22->m_state.m_shockWaveScreenOffset.y; } ShaderLayer::tweenValue(v22, y, a12, 58, v27, a21, a22); } if ( a17 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveOuter = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 59); m_shockWaveOuter = v22->m_state.m_shockWaveOuter; } ShaderLayer::tweenValue(v22, m_shockWaveOuter, a17, 59, v27, a21, a22); } if ( a18 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveMaxSize = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 60); m_shockWaveMaxSize = v22->m_state.m_shockWaveMaxSize; } ShaderLayer::tweenValue(v22, m_shockWaveMaxSize, a18, 60, v27, a21, a22); } if ( a8 != -909190.0 ) { if ( v27 <= 0.0 ) { m_shockWaveTimeOffset = 0.0; } else { if ( v22->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v22->m_state, 61); m_shockWaveTimeOffset = v22->m_state.m_shockWaveTimeOffset; } ShaderLayer::tweenValue(v22, m_shockWaveTimeOffset, a8, 61, v27, a21, a22); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source