ACE3/optionals/compat_rhs_usf3
Brandon Danyluk f2fff98ad0 Add AGM-114L Active Radar Homing Hellfire (#7337)
* Create AGM-114L

* If we lose LOS dont continue tracking magically Allow for datalinked targets to donate data to the missile.

* Update documentation

* RHS 2x hellfire compatability

* Make ARH more realistic by not allowing to switch targets after firing

* Fix filename. Change Hellfire attack profile to lead target. Switch to two LOS checks.

We check two Line's of Sight to ensure that we are 100% gone from the target. A raw LOS check will be blocked by bushes and light trees while the checkVisibility wont while on the otherhand smoke will block a visiblity check but not a raw LOS check. We get best of both worlds with this.
I changed the attack profile so that it will lead moving targets. This isnt needed with the laser version because the user will "lead" the target if needed, but with the radar scan we have velocity information so we might as well lead the target as much as possible

* Change function calls to FUNC macro. Slightly change radar logic. Up poll frequency to 7hz

Instead of the missile immediately going active when the shooter doesn't have radar, check if targets are in datalink. If they are, use the datalink to guide the missile instead of its internal radar.

* Add logic for missiles launched without target

If a missile is fired without a locked target, it will immediately go active and target the first thing its seeker picks up. This is an incredibly dangerous trait of active radar homing missiles and is so in this implementation. Be careful!

* Change from `exitWith` to basic `then`

Legacy code that never got changed. This is essentially what happened before

* Update CfgMagazineWells.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2019-12-30 12:29:08 -06:00
..
functions [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
$PBOPREFIX$ Added more missing PBOPREFIX files 2015-05-11 17:43:48 +02:00
CfgAmmo.hpp [compat_rhs_usf3] ACE Explosives functionality for RHS USAF (#7099) 2019-07-12 10:04:12 -05:00
CfgEventHandlers.hpp Added RHS Fastroping compatibility 2016-03-07 18:55:49 +01:00
CfgGlasses.hpp fixes shemagh having overlay despite no goggles (#5665) 2017-10-24 13:39:45 -05:00
CfgMagazineGroups.hpp RHS CSW compatability (#7082) 2019-07-04 17:56:49 -05:00
CfgMagazines.hpp Add AGM-114L Active Radar Homing Hellfire (#7337) 2019-12-30 12:29:08 -06:00
CfgMagazineWells.hpp Add AGM-114L Active Radar Homing Hellfire (#7337) 2019-12-30 12:29:08 -06:00
CfgVehicles.hpp Merge branch 'master' into cswSuperBranch 2019-07-25 15:19:17 -05:00
CfgWeapons.hpp RHS Compat - Change IHADSS hearing to crew, add pilot visors (#7312) 2019-12-19 10:20:20 -06:00
config.cpp Merge branch 'master' into cswSuperBranch 2019-07-25 15:19:17 -05:00
meta.cpp add optionals meta.cpp files (#4763) 2016-12-15 10:55:44 -06:00
script_component.hpp Added beautified component names 2016-06-20 11:44:36 +02:00
XEH_preInit.sqf Exclude uniforms with inherited modelSides (#4720) 2016-12-12 19:36:53 +01:00
XEH_PREP.hpp Added RHS Fastroping compatibility 2016-03-07 18:55:49 +01:00
XEH_preStart.sqf Added RHS Fastroping compatibility 2016-03-07 18:55:49 +01:00