2021-04-14 08:29:27 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
/*
|
2022-06-03 02:36:46 +00:00
|
|
|
* Author: Dani (TCVM)
|
2021-05-02 03:42:49 +00:00
|
|
|
* Condition to switch to next navigation profile
|
2021-04-14 08:29:27 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Guidance Arg Array <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2021-05-02 03:42:49 +00:00
|
|
|
* [] call ace_missileguidance_fnc_javelin_midCourseTransition
|
2021-04-14 08:29:27 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2021-05-02 02:55:26 +00:00
|
|
|
#define STAGE_LAUNCH 1
|
|
|
|
#define STAGE_CLIMB 2
|
|
|
|
#define STAGE_COAST 3
|
|
|
|
#define STAGE_TERMINAL 4
|
|
|
|
|
2021-04-14 08:29:27 +00:00
|
|
|
_args params ["_firedEH", "_launchParams", "_flightParams", "_seekerParams", "_stateParams", "_targetData", "_navigationStateData"];
|
|
|
|
_firedEH params ["_shooter","","","","_ammo","","_projectile"];
|
|
|
|
_launchParams params ["_shooter","_targetLaunchParams","_seekerType","_attackProfile","_lockMode","_laserInfo","_navigationType"];
|
|
|
|
_targetLaunchParams params ["_target", "_targetPos", "_launchPos", "_launchDir", "_launchTime"];
|
|
|
|
_flightParams params ["_pitchRate", "_yawRate", "_isBangBangGuidance"];
|
|
|
|
_stateParams params ["_lastRunTime", "_seekerStateParams", "_attackProfileStateParams", "_lastKnownPosState","_navigationParams", "_guidanceParameters"];
|
|
|
|
_seekerParams params ["_seekerAngle", "_seekerAccuracy", "_seekerMaxRange", "_seekerMinRange"];
|
|
|
|
_targetData params ["_targetDirection", "_attackProfileDirection", "_targetRange", "_targetVelocity", "_targetAcceleration"];
|
|
|
|
|
2021-05-02 02:34:41 +00:00
|
|
|
_attackProfileStateParams params ["_state"];
|
|
|
|
_state isEqualTo STAGE_TERMINAL
|
2021-04-14 08:29:27 +00:00
|
|
|
|