The IDF's Iron Dome air defense system, ported from the original Garry's Mod addon to s&box.
When an interceptable projectile enters the dome's detection radius, the dome plays the IDF Red Alert siren and launches a missile on a predictive intercept path solved by a quadratic intercept equation. The
missile detonates on proximity, destroying the threat and playing a layered close/distant explosion.
Multiple domes coordinate through a shared target registry, so two domes never engage the same target.
Modes (press E on a dome to cycle)
- Neutral — engages every interceptable target above its elevation
- Protective — same as Neutral but skips projectiles owned by the dome's network owner
- Admin — infinite missiles, no reload, 15000 unit detection radius
For the dome to intercept an object
- The object must have a Rigidbody component
- The object must carry the "interceptable" tag (Tags panel in the editor, or gameObject.Tags.Add("interceptable") in code)
- The object must be above the dome on the Z axis
- The dome must have line of sight to it
- The object must not already be claimed by another dome
ConVars (runtime tunable)
- iron_dome_max_health 1000 Dome health (blast damage only)
- iron_dome_siren_volume 1.0 Siren volume
- iron_dome_reload_time 10 Seconds per reload cycle
- iron_dome_missiles_per_reload 20 Missiles loaded per cycle
- iron_dome_missile_speed 3500 Interceptor speed in units per second
- iron_dome_detection_radius 8000 Scan radius (Admin mode overrides to 15000)
Health
- Domes take blast damage only — bullets and small arms do nothing
- Explosions within the dome's blast radius can chain-detonate adjacent domes
Credits
- Iron Dome model — Chenzoss
- Red Alert siren — ShalevDZN
- Original GMod addon and s&box port — PoorTuna