Airstrike_Atmosphere_FuelAirBomb
Module: airstrike_atomsphere_fuelairbomb.lua
Overview
This is the screen-grade / post-process flash for the Fuel-Air Bomb airstrike β it does not spawn the bomb. On activation it waits 1.75 s (longer than every other variant), then overrides the global Graphics.Atmosphere look and makes nearby heroes shield their eyes via MrxUtil.ShieldFace. The 1.75 s delay lines up with the fuel-air weaponβs characteristic delayed secondary ignition: MrxFuelAirBomb drops the projectile, sprays fuel, then ignites the fireball on its own timers β this grade is meant to hit at the ignition, not the initial drop.
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 table, no uGuid management, no persistent state. Reacts to one engine OnActivate call.
Functions
OnActivate(guid)
Engine lifecycle callback. Schedules _GraphicsAto 1.75 s later via Event.Create(Event.TimerRelative, {1.75}, _GraphicsAto, {guid}) β the delay is what distinguishes this from the other variants (which fire at 0.1β0.15 s).
_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:
| Constant | Value | Effect |
|---|---|---|
OnActivate delay | 1.75 s | Times the grade to the fuel-air ignition, not the drop. |
fAtmosphereLimit | 200 | Standard haze reach. |
fBloomAmount / fBloomMultiplier | 1 / 0.8 | Max bloom (bright fireball). |
fLightIntensity | 2.5 | Strong over-bright flash. |
fTimeRestore | 1.7 | Blends back over ~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, 1.75 s after activation.OnActivateis an engine lifecycle callback.
Notes for modders
- The 1.75 s
OnActivatedelay is the interesting knob here β overrideOnActivateif you want the grade to hit sooner/later relative to the fuel-air ignition sequence in MrxFuelAirBomb. - Override
_GraphicsAto(a plain global) to retune the grade or drop theShieldFaceflinch (150-unit radius, defined inmrxutil).