With Pro-nav the irratic behaviour of the laser caused the missile to over correct, so we average the position and use that running average for the target
* 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>
* abc
* Revert "abc"
This reverts commit bcb4214bd9.
* Update to current commit
* Begin transfer of SACLOS into Missile Guidance
* Allow seeker and attack profiles to have their own "OnFired" functions
* Fix bugs with SACLOS
* Implement Metis wire guidance. Add "Beam" guidance
* add missing parenthesis
* Update how Wire/Beam guidance works. Add compatability for SACLOS planes. Move all base missile changes out of missileguidance and into their own files.
* try to cleanup merge
* minor stuff
* abc
* Revert "abc"
This reverts commit bcb4214bd9.
* Update to current commit
* Ports over NouberNou's dragon guidance
* Add Dragon model
* Make the Dragon CSW capable
* Fix bugs regarding argument order
* Add Dragon Attack Profile. Change how missileGuidance guidance_pfh works in order to allow for different types of missiles besides continious thrust
* Fix bug regarding missile direction. Add official US Army training manual for the dragon for reference purposes
* Adjust model to reflect real-life one
* Add attackProfile and guidanceProfile onFired functions
* Change Dragon "onFired" to reflect missileGuidance changes
* Only implementing the Super-Dragon. Remove Tabs. Add new lines to all files. Add string-table. Tweak missile flight dynamics
* Add sight description
* Fix inheritance issues. Missile damage values tweaked. Fix String Table. Add backblast area.
* Add feature wiki page.
* Fix picture issues
* Remove Dragon manual
* add missing semi-colon
* Tweak damage values. Fix formatting. Add lazy evaluation where applicable
* Disable the ability to switch to the unusable launcher. Convert rvmat numbers to equivalent but more readable numbers. Multiple code fixes. ace_csw required. Formatting fixes. TGA -> PAA. Remove unused comments in missile guidance code
* Dragon flight dynamics tweaked. Now assuming there is a booster angle creating wobble. Add a slight delay when the wire breaks to fire all of the service charges
* hpp newline fixes. Case sensitivity for model and rvmat references
* Update Wiki dependencies
* Revert "Update Wiki dependencies"
This reverts commit efc298c481.
* fix dependency component
* Changed inheritance structure to be more rigid. Remove un-needed config values. Fix script issues regarding positioning and the launchers aliveness
* get rid of the optic for the base dragon. fucking bi configs not making sense
* Lock non-useable dragon on initialization
* Add model.cfg for animations
* Fix formatting. Fix M47 Dragon Optic zoom
* Change LOD selection names
* Revert indentation, keep parenthesis. "Start, stop, start stop! Jesus! I'm starting to think Mattis is just a big cock tease"
* Re-update indentation of model.cfg
* Path fix. Whitespace fix
* Sight attach/detach on same vehicle
* If the sight gets detached, make sure the dragon goes dumb. Remove resetting of resting position when gunner gets out - looks stupid, but when the dragon is fired weird stuff happens
* disable debug
* Add EOF
* Maybe finally fix EOF problem
* Everything
* Fixed missing ;
* Fix missing ; and double private
* Fixed cannot isNull on number
* Turn _temparture back to isNil
* Fix error from merge
* Add EH for UAV control, Add Hellfire support
* cycle guidance keybind
* Handle broken PlayerViewChanged
* humps
* UAV Self-interactions (#5379)
* Switch ACE_Player to uav AI on valid seat change
* Different approach to UAV interactions
* Forgot to remove a variable
* Changed param to select
* Hellfire
* Cleanup dev macros
* Cleanup some debug
* Add base interaction node for firemode actions
* Handle bad data in attack profile variable
* Skip ammo checks (returns bad data on added weaps)
* Add mags sizes for apache
* Add Hellfire Wiki Doc
* Cleanup doc
* Add pylon support
* Add support for pilot controlled weapons
* Add label to pylon mags
* Cleanup vehicle configs, autoAdd laser des, fix ineractions for driver
* NLAW Prototype
* Make AI Compatible
* Add Overfly Top Attack Mode
* Limit Max Deflection
* Base prediction on AI skill
* Generic cycle attack profile key for missile guidance
* Add hint for weapons without huds
* Configure for attack cycle key
* Finish OTA ammo effects
* Cleanup
* Arm at 20m
* Disable Debug
* No models for short lived sub-ammos
* Fix Korean strings
* Change AI randomization to use skillFinal
* Add wiki doc for nlaw
* Cleanup
* Cleanup
* Cleanup
* Fix laser and missileguidance over water
* Return a normalized vector in EFUNC(common,getTurretDirection)
* Make laser dispersion simulation optional, default off
* Prototype for ace_laser_designate
* Remove vanilla laser handling from ace_laser in favor of the new code on ace_laser_designate
* Simplify laser into one module
Rewrite large parts of laser
Merge laser_designate
Delete lase_selfDesignate
* Cleanup missile guidance
* Headers, fix laser over water
* Cleanup
* Test
* Change setting to scalar, more cleanup
* Add seeker debug drawing
* Optimizations with private, params, and isEqualType
* Fixed tab being used instead of space
* Fixed tabs inserted by notepad++
* More usage of new private syntax and params
- changed a few checks for an array being empty to `_arr isEqualTo []`
rather than `count _arr == 0`
- added more uses of `private` on the same line as the variable is
declared
- added more uses of params to assign variables passed as parameters
- removed unnecessary parentheses
- removed several unnecessary variable declarations with private array
syntax
* clean up and formatting