mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
763 B
Plaintext
21 lines
763 B
Plaintext
#include "script_component.hpp"
|
|
|
|
private ["_bulletMass", "_boreHeight", "_airFriction", "_muzzleVelocity", "_zeroRange"];
|
|
_bulletMass = _this select 0;
|
|
_boreHeight = _this select 1;
|
|
_airFriction = _this select 2;
|
|
_muzzleVelocity = _this select 3;
|
|
_zeroRange = _this select 4;
|
|
|
|
private ["_scopeBaseAngle"];
|
|
_scopeBaseAngle = 0;
|
|
|
|
private ["_temperature", "_barometricPressure", "_relativeHumidity"];
|
|
_temperature = 15;
|
|
_barometricPressure = 1013.25;
|
|
_relativeHumidity = 0;
|
|
|
|
_result = [_scopeBaseAngle, _bulletMass, _boreHeight, _airFriction, _muzzleVelocity, _temperature, _barometricPressure, _relativeHumidity, 1000, 0, 0, 0, 0, _zeroRange, _airFriction, 1, "ICAO", false] call FUNC(calculate_solution);
|
|
|
|
_scopeBaseAngle + (_result select 0) / 60
|