Iron Dome
This mod allows vanilla launchers to intercept incoming ammunition (Shells, Rockets, Cruise missiles….).
It also adds a new launcher inspired by the Israeli Iron Dome.
You can customize many parameters by using the following function:
The parameters are the following:
- Launcher: The object name
- Distance: Distance at wich it will intercept
- logic: Logic used to pick targets: 0 – random, 1 – speed bias, 2 – threat bias
- missile speed: Missile maximum speed (Use values between 250 and 1000)
- Guidance: Guidance law: 0 – APN (best one), 1 – PN, 2 – LOS (worst one)
- N: Guidance gain, typical values between 3 and 5
- Aiming: If the launcher has to aim the target
- time to max: Missile speed increases linearly and reaches the max in said time
- delay: Delay between shots
- searchArray: Default: ["ShellBase","SubmunitionBase"], should cover most of the ammo
To use the custom function just place it in a launcher’s init, ie:
[this, 7500, 2, [1100/3.6, 0, 4, true, 30, 3]] spawn IRON_DOME37_fnc_handleDome;
Should also work for modded units
By default Vanilla launchers are initialized with their values so you only need to run this if you want to change something.
Known issue: Sometimes the missiles will go slow after being launched when shells are inbound, this is due to the APN algorithm fighting the missile accelleration, solution is to add more speed to the missile or change the launcher location. This has hopefully been fixed, a better solution is also going to be developed soon.
Code can be found here:
https://github.com/Dankan37/Arma-3-Iron-Dome
Added original siren, when a missile is detected, as a bonus it will also broadcast the siren across all "Loudspeaker" objects nearby (Class name: Land_Loudspeakers_F)
Improved the code to switch between APN and PN fixing the issue of missiles’ guidance being saturated
The system will not intercept ammuniton fired within 300m from the launcher
Known bugs:
Multiple launchers each play his own siren
Some missiles don’t work and get no guidance and just start floating (rare)
Actions not added on MP (fix found)
Revisions:
Old revisions of this mod are available below. Click the link to download.