diff --git a/Code/functions/Common/fn_initLocalPlayer.sqf b/Code/functions/Common/fn_initLocalPlayer.sqf index d45e9e7d..0875c10a 100644 --- a/Code/functions/Common/fn_initLocalPlayer.sqf +++ b/Code/functions/Common/fn_initLocalPlayer.sqf @@ -78,6 +78,11 @@ call compile preprocessFile "Scripts\AT\dronehack_init.sqf"; setTerrainGrid A3E_Param_Grass; +//disable player stamina based on setting +if (A3E_Param_Stamina == 0) then { + player enableStamina false; +}; + if (A3E_Param_Magrepack == 1) then { [] execVM "Scripts\outlw_magRepack\MagRepack_init_sv.sqf"; }; diff --git a/Code/include/params.hpp b/Code/include/params.hpp index 31f1f598..9a10efe1 100644 --- a/Code/include/params.hpp +++ b/Code/include/params.hpp @@ -201,6 +201,13 @@ class Params livechanges = 1; default = 0; }; + class A3E_Param_Stamina + { + title="Player Stamina"; + values[]={0,1}; + texts[]={"Off", "On"}; + default = 1; + }; class A3E_Param_Spacer4 { title = "==================== Statistic Settings ====================";