ACE3/addons/atragmx/functions/fnc_calculate_range_card.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

31 lines
660 B
Plaintext

/*
* Author: Ruthberg
* Calculates the range card output based on the current data set
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_atragmx_fnc_calculate_range_card
*
* Public: No
*/
#include "script_component.hpp"
GVAR(rangeCardData) = [];
private _targetRange = GVAR(rangeCardEndRange);
if (GVAR(currentUnit) == 1) then {
_targetRange = _targetRange / 1.0936133;
};
private _solutionInput = +GVAR(targetSolutionInput);
_solutionInput set [ 8, round(_solutionInput select 4)];
_solutionInput set [13, _targetRange];
_solutionInput set [17, true];
private _result = _solutionInput call FUNC(calculate_solution);