#include "script_component.hpp" /* * Author: PabstMirror * Text statement for the scope magnification stat. * * Arguments: * 0: Not used * 1: Item config path * * Return Value: * Stat Text * * Public: No */ params ["", "_config"]; TRACE_1("statTextStatement_scopeMag",_config); private _minZoom = 999; // FOV, so smaller is more zoomed in { _minZoom = _minZoom min (getNumber (_x >> "opticsZoomMin")); } forEach configProperties [_config >> "ItemInfo" >> "OpticsModes"]; if (_minZoom in [0, 999]) exitWith {"?"}; format ["%1x", (0.25 / _minZoom) toFixed 1]