From 1bde8d617b567cecf1d64f4a729cfa7ae0170658 Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 13 Aug 2016 12:38:04 +0200 Subject: [PATCH] rename cookoff setting to 'GVAR(enable)' --- addons/cookoff/ACE_Settings.hpp | 2 +- addons/cookoff/XEH_postInit.sqf | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/cookoff/ACE_Settings.hpp b/addons/cookoff/ACE_Settings.hpp index 1da17726b3..df96613ee0 100644 --- a/addons/cookoff/ACE_Settings.hpp +++ b/addons/cookoff/ACE_Settings.hpp @@ -1,6 +1,6 @@ class ACE_Settings { - class GVAR(enableCookoff) { + class GVAR(enable) { displayName = CSTRING(enable_name); description = CSTRING(enable_tooltip); value = 1; diff --git a/addons/cookoff/XEH_postInit.sqf b/addons/cookoff/XEH_postInit.sqf index e4f1d86145..b241eed532 100644 --- a/addons/cookoff/XEH_postInit.sqf +++ b/addons/cookoff/XEH_postInit.sqf @@ -6,7 +6,7 @@ // cookoff and burning engine ["Tank", "init", { (_this select 0) addEventHandler ["HandleDamage", { - if (GVAR(enableCookoff)) then { + if (GVAR(enable)) then { ["tank", _this] call FUNC(handleDamage); }; }]; @@ -14,7 +14,7 @@ ["Wheeled_APC_F", "init", { (_this select 0) addEventHandler ["HandleDamage", { - if (GVAR(enableCookoff)) then { + if (GVAR(enable)) then { ["tank", _this] call FUNC(handleDamage); }; }]; @@ -22,7 +22,7 @@ ["Car", "init", { (_this select 0) addEventHandler ["HandleDamage", { - if (GVAR(enableCookoff)) then { + if (GVAR(enable)) then { ["car", _this] call FUNC(handleDamage); }; }]; @@ -30,14 +30,14 @@ // secondary explosions ["AllVehicles", "killed", { - if (GVAR(enableCookoff)) then { + if (GVAR(enable)) then { (_this select 0) call FUNC(secondaryExplosions); }; }, nil, ["Man"]] call CBA_fnc_addClassEventHandler; // blow off turret effect ["Tank", "killed", { - if (GVAR(enableCookoff)) then { + if (GVAR(enable)) then { (_this select 0) call FUNC(blowOffTurret); }; }] call CBA_fnc_addClassEventHandler;