From 2dbf979ec602500fbcf733d5a570c29b476841b7 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Sat, 20 Feb 2016 20:05:59 -0300 Subject: [PATCH] By default, prevent reloading from automatically clearing a weapon jam (like in ACE2) --- addons/overheating/ACE_Settings.hpp | 6 ++++++ addons/overheating/functions/fnc_handleTakeEH.sqf | 2 ++ addons/overheating/stringtable.xml | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/addons/overheating/ACE_Settings.hpp b/addons/overheating/ACE_Settings.hpp index c5a514e5e2..f279558272 100644 --- a/addons/overheating/ACE_Settings.hpp +++ b/addons/overheating/ACE_Settings.hpp @@ -26,4 +26,10 @@ class ACE_Settings { displayName = CSTRING(overheatingDispersion_displayName); description = CSTRING(overheatingDispersion_description); }; + class GVAR(unJamOnreload) { + typeName = "BOOL"; + value = 0; + displayName = CSTRING(unJamOnreload_displayName); + description = CSTRING(unJamOnreload_description); + }; }; diff --git a/addons/overheating/functions/fnc_handleTakeEH.sqf b/addons/overheating/functions/fnc_handleTakeEH.sqf index 05139119e5..ffcead342f 100644 --- a/addons/overheating/functions/fnc_handleTakeEH.sqf +++ b/addons/overheating/functions/fnc_handleTakeEH.sqf @@ -15,6 +15,8 @@ */ #include "script_component.hpp" +if !(GVAR(unJamOnreload)) exitWith {}; + params ["_unit", "_container", "_item"]; TRACE_3("params",_unit,_container,_item); diff --git a/addons/overheating/stringtable.xml b/addons/overheating/stringtable.xml index ede5f94f45..a1246d3748 100644 --- a/addons/overheating/stringtable.xml +++ b/addons/overheating/stringtable.xml @@ -55,6 +55,12 @@ Überhitzte Waffen sind weniger genau und verfügen über eine geringere Mündungsgeschwindigkeit. Wird bei allen Spielern angewendet. Przegrzane bronie będą mniej celne oraz będą miały zmniejszoną prędkość pocisku. Wpływa na wszystkich graczy. + + Unjam weapon on reload + + + Reloading clears a weapon jam. + Spare barrel Ersatzlauf