ACE3/addons/missileguidance/functions/fnc_javelin_midCourseTransition.sqf

34 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-04-14 08:29:27 +00:00
#include "script_component.hpp"
/*
* Author: Brandon (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
*/
#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"];
_attackProfileStateParams params ["_state"];
_state isEqualTo STAGE_TERMINAL
2021-04-14 08:29:27 +00:00