2015-01-18 21:34:45 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
disableSerialization;
|
|
|
|
|
|
|
|
_display = _this select 0;
|
2015-01-18 21:34:45 +00:00
|
|
|
uiNamespace setVariable [QGVAR(ZeroingDisplay, _display];
|
2015-01-11 16:42:31 +00:00
|
|
|
_vertical = _display displayCtrl 925002;
|
|
|
|
_horizontal = _display displayCtrl 925003;
|
|
|
|
|
|
|
|
_weapons = [
|
2015-01-18 07:13:37 +00:00
|
|
|
primaryWeapon player,
|
|
|
|
secondaryWeapon player,
|
|
|
|
handgunWeapon player
|
2015-01-11 16:42:31 +00:00
|
|
|
];
|
|
|
|
|
2015-01-18 21:34:45 +00:00
|
|
|
if ((currentWeapon ACE_player) in _weapons) then {
|
|
|
|
_zeroing = GVAR(Adjustment) select (_weapons find (currentWeapon ACE_player));
|
2015-01-18 07:13:37 +00:00
|
|
|
_horizontal ctrlSetText (str (_zeroing select 0));
|
|
|
|
_vertical ctrlSetText (str (_zeroing select 1));
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|