From 88db60ad97deb9a094f21d2f74f13b585d46fd12 Mon Sep 17 00:00:00 2001 From: Patrick Landolt Date: Mon, 1 May 2023 23:52:32 +0200 Subject: [PATCH] stamina test --- Code/functions/Common/fn_initLocalPlayer.sqf | 5 +++++ Code/include/params.hpp | 7 +++++++ 2 files changed, 12 insertions(+) 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 ====================";