rename cookoff setting to 'GVAR(enable)'

This commit is contained in:
commy2 2016-08-13 12:38:04 +02:00
parent 41ce89b439
commit 1bde8d617b
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
class ACE_Settings { class ACE_Settings {
class GVAR(enableCookoff) { class GVAR(enable) {
displayName = CSTRING(enable_name); displayName = CSTRING(enable_name);
description = CSTRING(enable_tooltip); description = CSTRING(enable_tooltip);
value = 1; value = 1;

View File

@ -6,7 +6,7 @@
// cookoff and burning engine // cookoff and burning engine
["Tank", "init", { ["Tank", "init", {
(_this select 0) addEventHandler ["HandleDamage", { (_this select 0) addEventHandler ["HandleDamage", {
if (GVAR(enableCookoff)) then { if (GVAR(enable)) then {
["tank", _this] call FUNC(handleDamage); ["tank", _this] call FUNC(handleDamage);
}; };
}]; }];
@ -14,7 +14,7 @@
["Wheeled_APC_F", "init", { ["Wheeled_APC_F", "init", {
(_this select 0) addEventHandler ["HandleDamage", { (_this select 0) addEventHandler ["HandleDamage", {
if (GVAR(enableCookoff)) then { if (GVAR(enable)) then {
["tank", _this] call FUNC(handleDamage); ["tank", _this] call FUNC(handleDamage);
}; };
}]; }];
@ -22,7 +22,7 @@
["Car", "init", { ["Car", "init", {
(_this select 0) addEventHandler ["HandleDamage", { (_this select 0) addEventHandler ["HandleDamage", {
if (GVAR(enableCookoff)) then { if (GVAR(enable)) then {
["car", _this] call FUNC(handleDamage); ["car", _this] call FUNC(handleDamage);
}; };
}]; }];
@ -30,14 +30,14 @@
// secondary explosions // secondary explosions
["AllVehicles", "killed", { ["AllVehicles", "killed", {
if (GVAR(enableCookoff)) then { if (GVAR(enable)) then {
(_this select 0) call FUNC(secondaryExplosions); (_this select 0) call FUNC(secondaryExplosions);
}; };
}, nil, ["Man"]] call CBA_fnc_addClassEventHandler; }, nil, ["Man"]] call CBA_fnc_addClassEventHandler;
// blow off turret effect // blow off turret effect
["Tank", "killed", { ["Tank", "killed", {
if (GVAR(enableCookoff)) then { if (GVAR(enable)) then {
(_this select 0) call FUNC(blowOffTurret); (_this select 0) call FUNC(blowOffTurret);
}; };
}] call CBA_fnc_addClassEventHandler; }] call CBA_fnc_addClassEventHandler;