mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
316fbfe7b9
* 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
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Brandon (TCVM)
|
|
* Sets up SACLOS state arrays (called from missileGuidance's onFired).
|
|
*
|
|
* Arguments:
|
|
* Guidance Arg Array <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_missileguidance_fnc_SACLOS_onFired
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_firedEH", "", "", "", "_stateParams"];
|
|
_firedEH params ["_shooter","_weapon","","","","","_projectile"];
|
|
_stateParams params ["", "_seekerStateParams"];
|
|
|
|
private _config = ([_projectile] call CBA_fnc_getObjectConfig) >> "ace_missileguidance";
|
|
|
|
if (_shooter isKindOf "Plane" && { !hasPilotCamera _shooter }) exitWith { WARNING("SACLOS fired from planes without camera unsupported"); };
|
|
|
|
private _turretPath = [_shooter, _weapon] call CBA_fnc_turretPathWeapon;
|
|
private _turretConfig = [_shooter, _turretPath] call CBA_fnc_getTurret;
|
|
private _memoryPointGunnerOptics = getText(_turretConfig >> "memoryPointGunnerOptics");
|
|
private _animationSourceBody = getText(_turretConfig >> "animationSourceBody");
|
|
private _animationSourceGun = getText(_turretConfig >> "animationSourceGun");
|
|
_seekerStateParams set [0, _memoryPointGunnerOptics];
|
|
_seekerStateParams set [1, _animationSourceBody];
|
|
_seekerStateParams set [2, _animationSourceGun];
|
|
|