2023-10-07 00:45:05 +00:00
|
|
|
#include "..\script_component.hpp"
|
2021-04-14 04:45:18 +00:00
|
|
|
/*
|
2023-09-09 16:30:39 +00:00
|
|
|
* Author: tcvm
|
2021-04-14 04:45:18 +00:00
|
|
|
* Sets up IR state arrays (called from missileGuidance's onFired).
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Guidance Arg Array <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_missileguidance_fnc_IR_onFired
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2021-05-18 06:32:55 +00:00
|
|
|
params ["_firedEH", "_launchParams", "", "", "_stateParams"];
|
2021-04-14 04:45:18 +00:00
|
|
|
_firedEH params ["_shooter","_weapon","","","","","_projectile"];
|
|
|
|
_stateParams params ["", "_seekerStateParams"];
|
2021-05-18 06:32:55 +00:00
|
|
|
_launchParams params ["", "_targetLaunchParams"];
|
|
|
|
_targetLaunchParams params ["_target"];
|
2021-04-14 04:45:18 +00:00
|
|
|
|
2021-04-14 05:12:47 +00:00
|
|
|
private _flareDistanceFilter = getNumber (configOf _projectile >> QUOTE(ADDON) >> "flareDistanceFilter");
|
|
|
|
private _flareAngleFilter = getNumber (configOf _projectile >> QUOTE(ADDON) >> "flareAngleFilter");
|
2021-04-14 04:45:18 +00:00
|
|
|
|
|
|
|
_seekerStateParams set [0, _flareDistanceFilter];
|
|
|
|
_seekerStateParams set [1, _flareAngleFilter];
|
2021-05-18 06:32:55 +00:00
|
|
|
_seekerStateParams set [2, _target];
|
2021-04-14 04:45:18 +00:00
|
|
|
|