Skip to content

Commit 470a359

Browse files
committed
Changed call of parameters to modern BIS_Fnc
1 parent 49d7737 commit 470a359

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

source/INIT.sqf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ if (isMultiplayer) then {
2727
_revive_activated = paramsArray select 0; // Revives, true or false
2828
DUWSMP_CP_death_cost = paramsArray select 1;
2929

30-
if(paramsArray select 2 == 0) then {
30+
// Setup stamina system
31+
staminaEnabled = ["Stamina", 0] call BIS_fnc_getParamValue;
32+
if(staminaEnabled == 0) then {
3133
staminaEnabled = false;
32-
} else { staminaEnabled = true; };
34+
} else {
35+
staminaEnabled = true;
36+
};
3337

3438
if (support_armory_available) then {
3539
hq_blu1 addaction ["<t color='#ff0066'>Armory (VA)</t>","bisArsenal.sqf", "", 0, true, true, "", "_this == player"];

source/params.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class Params {
1717
title = "Stamina System";
1818
values[] = {1,0};
1919
texts[] = {"On","Off"};
20-
default = true;
20+
default = 1;
2121
};
2222
}

0 commit comments

Comments
 (0)