Airstrike_Atmosphere_MOAB
Module: airstrike_atomsphere_moab.lua
Overview
This is the screen-grade / post-process flash for the MOAB (Massive Ordnance Air Blast) airstrike β it does not spawn the bomb. On activation it overrides the global Graphics.Atmosphere look (bright over-exposed flash), then makes nearby heroes shield their eyes via MrxUtil.ShieldFace. The actual ordnance is delivered by MrxMOAB (which inherits from MrxDaisyCutter). Its numeric grade is the same as the daisy-cutter variant except the restore takes longer.
atomsphereis a typo baked into the real in-game object name (it means atmosphere). Leave it as-is.
Inheritance
- Inherits from:
none - Imports:
MrxUtil
Instance pattern
Stateless utility module β no per-instance pattern, no uGuid keying, no persistent state. Reacts to one engine OnActivate call.
Functions
OnActivate(guid)
Engine lifecycle callback. Schedules _GraphicsAto 0.1 s later via Event.Create(Event.TimerRelative, {0.1}, _GraphicsAto, {guid}).
_GraphicsAto(guid)
Runs the Graphics.Atmosphere.Begin() β¦ End() override block (see tunables), then calls MrxUtil.ShieldFace(guid) β plays the "shieldface" action on every player hero within 150 units of guid.
Module constants & tunables
Hardcoded literals inside _GraphicsAto (no named module constants). Notable for this variant:
Graphics.Atmosphere key | Value | Effect |
|---|---|---|
fAtmosphereLimit | 250 | Wide haze reach. |
fBloomAmount / fBloomMultiplier | 0.84 / 0.66 | Strong bloom. |
fLightIntensity | 3.75 | Big over-bright flash. |
fTimeRestore | 3 | Slow ~3 s blend back β the blast look lingers longer than the daisy cutterβs 1.7 s. |
Ambient/cube/rim colors are neutral grey 128,128,128,255; gradient stops uiGradient0_Color2 / uiGradient1_Color1 are zeroed to 0,0,255,0.
Events
- Not an
Event.Createsubscription.Event.TimerRelativeschedules_GraphicsAtoonce, 0.1 s after activation.OnActivateis an engine lifecycle callback.
Notes for modders
fTimeRestore(3) is what makes the MOAB flash linger β bump it for an even heavier βthe whole area is washed outβ feel, or lower it toward the daisy cutterβs1.7.- Override
_GraphicsAto(a plain global) to retune the grade or drop theShieldFaceflinch (150-unit radius, defined inmrxutil). - To change the bomb itself, edit MrxMOAB β this file is visuals only.