mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Explosives - Add ace_isEOD 3DEN attribute (#7080)
* Add ace_isEOD 3DEN attribute * Apply suggestions from code review Co-Authored-By: commy2 <commy-2@gmx.de>
This commit is contained in:
parent
342e881fda
commit
2e5cdbd62c
22
addons/explosives/Cfg3DEN.hpp
Normal file
22
addons/explosives/Cfg3DEN.hpp
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#define DEFAULT_IS_EOD (_this getUnitTrait 'explosiveSpecialist')
|
||||||
|
|
||||||
|
class Cfg3DEN {
|
||||||
|
class Object {
|
||||||
|
class AttributeCategories {
|
||||||
|
class ace_attributes {
|
||||||
|
class Attributes {
|
||||||
|
class ace_isEOD {
|
||||||
|
displayName = CSTRING(IsEOD_DisplayName);
|
||||||
|
tooltip = CSTRING(IsEOD_Description);
|
||||||
|
property = QUOTE(ace_isEOD);
|
||||||
|
control = "Checkbox";
|
||||||
|
expression = QUOTE(_this setVariable [ARR_3('ACE_isEOD',_value,true)]);
|
||||||
|
defaultValue = QUOTE(DEFAULT_IS_EOD);
|
||||||
|
condition = "objectBrain";
|
||||||
|
typeName = "BOOL";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
@ -16,6 +16,7 @@ class CfgPatches {
|
|||||||
|
|
||||||
#include "ACE_Settings.hpp"
|
#include "ACE_Settings.hpp"
|
||||||
#include "CfgEventHandlers.hpp"
|
#include "CfgEventHandlers.hpp"
|
||||||
|
#include "Cfg3DEN.hpp"
|
||||||
#include "CfgAmmo.hpp"
|
#include "CfgAmmo.hpp"
|
||||||
#include "CfgMagazines.hpp"
|
#include "CfgMagazines.hpp"
|
||||||
#include "CfgWeapons.hpp"
|
#include "CfgWeapons.hpp"
|
||||||
|
@ -1042,5 +1042,13 @@
|
|||||||
<Russian>Таймер взрывчатки</Russian>
|
<Russian>Таймер взрывчатки</Russian>
|
||||||
<Portuguese>Timer de explosão</Portuguese>
|
<Portuguese>Timer de explosão</Portuguese>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Explosives_IsEOD_DisplayName">
|
||||||
|
<English>Is EOD</English>
|
||||||
|
<German>Kampfmittelbeseitigung</German>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Explosives_IsEOD_Description">
|
||||||
|
<English>Controls whether the unit is an explosive specialist.</English>
|
||||||
|
<German>Steuert, ob die Einheit ein Sprengstoffspezialist ist.</German>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user