Skip to content

Commit c9a5149

Browse files
committed
Moved mission parameter check for Stamina System outside MP code block
Moved mission parameter outside of the MP-Only code block, and defaulted to Stamina System to be OFF until BI introduces an option to have Mission parameters for SP missions
1 parent eb75d44 commit c9a5149

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

source/INIT.sqf

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ execvm "dynamic_music\dyn_music_init.sqf";
1818
if (hasInterface) then { execVM "misc\gps_marker.sqf";};
1919
if (!isMultiplayer) then {
2020
getsize_script = [player] execVM "mapsize.sqf";
21-
};
22-
21+
};
22+
staminaEnabled = ["Stamina", false] call BIS_fnc_getParamValue;
23+
if(staminaEnabled == 0) then {
24+
staminaEnabled = false;
25+
} else {
26+
staminaEnabled = true;
27+
};
2328
// IF MP
2429
if (isMultiplayer) then {
2530

2631
// Get the variables from the parameters lobby
2732
_revive_activated = ["Revive", 1] call BIS_fnc_getParamValue;
2833
DUWSMP_CP_death_cost = ["DeathPenalty", 1] call BIS_fnc_getParamValue;
29-
staminaEnabled = ["Stamina", 0] call BIS_fnc_getParamValue;
34+
//staminaEnabled = ["Stamina", 0] call BIS_fnc_getParamValue;
3035

31-
if(staminaEnabled == 0) then {
36+
/*if(staminaEnabled == 0) then {
3237
staminaEnabled = false;
3338
} else {
3439
staminaEnabled = true;
35-
};
40+
};*/
3641

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

0 commit comments

Comments
 (0)