2016-09-17 15:47:29 +00:00
|
|
|
|
|
|
|
class Cfg3DEN {
|
|
|
|
class Object {
|
|
|
|
class AttributeCategories {
|
|
|
|
class ace_attributes {
|
|
|
|
class Attributes {
|
|
|
|
class GVAR(enable) {
|
|
|
|
property = QGVAR(enable);
|
2016-09-17 16:08:08 +00:00
|
|
|
control = "Checkbox";
|
2019-03-31 02:54:12 +00:00
|
|
|
displayName = CSTRING(enable_hd_name);
|
|
|
|
tooltip = CSTRING(enable_hd_tooltip);
|
2016-09-17 15:47:29 +00:00
|
|
|
expression = QUOTE(if !(_value) then {_this setVariable [ARR_3('%s',_value,true)];};);
|
|
|
|
typeName = "BOOL";
|
2017-12-06 19:13:10 +00:00
|
|
|
condition = "objectVehicle";
|
2019-11-05 17:55:15 +00:00
|
|
|
defaultValue = QUOTE((GETMVAR(QGVAR(enable),0)) in [ARR_2(1,2)]);
|
2017-12-06 19:13:10 +00:00
|
|
|
};
|
|
|
|
class GVAR(enableAmmoCookoff) {
|
|
|
|
property = QGVAR(enableAmmoCookoff);
|
|
|
|
control = "Checkbox";
|
|
|
|
displayName = CSTRING(enableAmmoCookoff_name);
|
|
|
|
tooltip = CSTRING(enableAmmoCookoff_tooltip);
|
|
|
|
expression = QUOTE(if !(_value) then {_this setVariable [ARR_3('%s',_value,true)];};);
|
|
|
|
typeName = "BOOL";
|
2016-11-06 12:24:00 +00:00
|
|
|
condition = "objectHasInventoryCargo";
|
2017-12-06 19:13:10 +00:00
|
|
|
defaultValue = QUOTE(if (_this isKindOf 'ReammoBox_F') then { GETMVAR(QGVAR(enableAmmobox),true) } else { GETMVAR(QGVAR(enableAmmoCookoff),true) };);
|
2016-09-17 15:47:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|