ACE3/addons/parachute/XEH_preInit.sqf
JoramD 60cab0af6b
Parachute - Add failure chance (#8226)
* Initial push

* disable forgotten define

* Improve exitWith check

* Requested/suggested changes

* Requested changes

* Requested changes
2021-04-30 22:48:02 -05:00

31 lines
687 B
Plaintext

#include "script_component.hpp"
// Author: Garth 'L-H' de Wet
// Initialises the parachute system.
ADDON = false;
PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
[
QGVAR(hideAltimeter),
"CHECKBOX",
[LSTRING(HideAltimeter), LSTRING(HideAltimeter_tooltip)],
format ["ACE %1", localize ELSTRING(common,DisplayName)],
true,
false,
{[QGVAR(hideAltimeter), _this, false] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_fnc_addSetting;
[
QGVAR(failureChance),
"SLIDER",
LSTRING(FailureChance),
["ACE Uncategorized", localize "str_dn_parachute"],
[0, 1, 0, 2, true],
1
] call CBA_fnc_addSetting;
ADDON = true;