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 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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user