-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathsettings.sqf
More file actions
29 lines (26 loc) · 879 Bytes
/
settings.sqf
File metadata and controls
29 lines (26 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
private _curCat = LSTRING(Settings_Cat);
[
QGVAR(ExplosionEventHandlerEnabled),
"CHECKBOX",
[LSTRING(Settings_EnabledExplosionEH_DisplayName), LSTRING(Settings_EnabledExplosionEH_ToolTip)],
[COMPONENT_NAME, _curCat],
true,
true // players may configure their own preferences
] call CBA_fnc_addSetting;
[
QGVAR(ExplosionReactionTime),
"SLIDER",
[LSTRING(Settings_ExplosionResetTime_DisplayName), LSTRING(Settings_ExplosionResetTime_ToolTip)],
[COMPONENT_NAME, _curCat],
[0, 25, 9, 2],
true // players may configure their own preferences
] call CBA_fnc_addSetting;
// Chance of panic expressed as percentage
[
QGVAR(panicChance),
"SLIDER",
[LSTRING(Settings_PanicChance), LSTRING(Settings_PanicChance_ToolTip)],
[COMPONENT_NAME, _curCat],
[0, 1, 0.1, 2, true],
1
] call CBA_fnc_addSetting;