mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
rename cookoff setting to 'GVAR(enable)'
This commit is contained in:
parent
41ce89b439
commit
1bde8d617b
@ -1,6 +1,6 @@
|
||||
|
||||
class ACE_Settings {
|
||||
class GVAR(enableCookoff) {
|
||||
class GVAR(enable) {
|
||||
displayName = CSTRING(enable_name);
|
||||
description = CSTRING(enable_tooltip);
|
||||
value = 1;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user