mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add setting to disable cook off effects
This commit is contained in:
parent
c42004449d
commit
f0a74781c9
9
addons/cookoff/ACE_Settings.hpp
Normal file
9
addons/cookoff/ACE_Settings.hpp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
class ACE_Settings {
|
||||||
|
class GVAR(enableCookoff) {
|
||||||
|
displayName = CSTRING(enable_name);
|
||||||
|
description = CSTRING(enable_tooltip);
|
||||||
|
value = 0;
|
||||||
|
typeName = "BOOL";
|
||||||
|
};
|
||||||
|
};
|
@ -6,26 +6,38 @@
|
|||||||
// cookoff and burning engine
|
// cookoff and burning engine
|
||||||
["Tank", "init", {
|
["Tank", "init", {
|
||||||
(_this select 0) addEventHandler ["HandleDamage", {
|
(_this select 0) addEventHandler ["HandleDamage", {
|
||||||
["tank", _this] call FUNC(handleDamage);
|
if (GVAR(enableCookoff)) then {
|
||||||
|
["tank", _this] call FUNC(handleDamage);
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
["Wheeled_APC_F", "init", {
|
["Wheeled_APC_F", "init", {
|
||||||
(_this select 0) addEventHandler ["HandleDamage", {
|
(_this select 0) addEventHandler ["HandleDamage", {
|
||||||
["tank", _this] call FUNC(handleDamage);
|
if (GVAR(enableCookoff)) then {
|
||||||
|
["tank", _this] call FUNC(handleDamage);
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
["Car", "init", {
|
["Car", "init", {
|
||||||
(_this select 0) addEventHandler ["HandleDamage", {
|
(_this select 0) addEventHandler ["HandleDamage", {
|
||||||
["car", _this] call FUNC(handleDamage);
|
if (GVAR(enableCookoff)) then {
|
||||||
|
["car", _this] call FUNC(handleDamage);
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
}, nil, ["Wheeled_APC_F"], true] call CBA_fnc_addClassEventHandler;
|
}, nil, ["Wheeled_APC_F"], true] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
// secondary explosions
|
// secondary explosions
|
||||||
["AllVehicles", "killed", {(_this select 0) call FUNC(secondaryExplosions)}, nil, ["Man"]] call CBA_fnc_addClassEventHandler;
|
["AllVehicles", "killed", {
|
||||||
|
if (GVAR(enableCookoff)) then {
|
||||||
|
(_this select 0) call FUNC(secondaryExplosions);
|
||||||
|
};
|
||||||
|
}, nil, ["Man"]] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
// blow off turret effect
|
// blow off turret effect
|
||||||
["Tank", "killed", {(_this select 0) call FUNC(blowOffTurret)}] call CBA_fnc_addClassEventHandler;
|
["Tank", "killed", {
|
||||||
|
if (GVAR(enableCookoff)) then {
|
||||||
//Reammobox_F
|
(_this select 0) call FUNC(blowOffTurret);
|
||||||
|
};
|
||||||
|
}] call CBA_fnc_addClassEventHandler;
|
||||||
|
@ -14,6 +14,7 @@ class CfgPatches {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "ACE_Settings.hpp"
|
||||||
#include "CfgEventHandlers.hpp"
|
#include "CfgEventHandlers.hpp"
|
||||||
|
|
||||||
#include "CfgCloudlets.hpp"
|
#include "CfgCloudlets.hpp"
|
||||||
|
13
addons/cookoff/stringtable.xml
Normal file
13
addons/cookoff/stringtable.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project name="ACE">
|
||||||
|
<Package name="CookOff">
|
||||||
|
<Key ID="STR_ACE_CookOff_enable_name">
|
||||||
|
<English>Enable cook off</English>
|
||||||
|
<German>Cook-off ermöglichen</German>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_CookOff_enable_tooltip">
|
||||||
|
<English>Enables cook off and related vehicle destruction effects.</English>
|
||||||
|
<German>Ermöglicht Cook-off und zugehörige Fahrzeug-Zerstörungseffekte.</German>
|
||||||
|
</Key>
|
||||||
|
</Package>
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user