mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
b1f5caacbb
* Improve cookoff setting UX - Adds second eden attribute to boxes/vehicles to toggle the ammunition cookoff itself - Removes the cookoff toggle from boxes (they only care about ammunition cookoff) * Fix attribute default values * Update incendiary box ignition code
32 lines
1.4 KiB
C++
32 lines
1.4 KiB
C++
|
|
class Cfg3DEN {
|
|
class Object {
|
|
class AttributeCategories {
|
|
class ace_attributes {
|
|
class Attributes {
|
|
class GVAR(enable) {
|
|
property = QGVAR(enable);
|
|
control = "Checkbox";
|
|
displayName = CSTRING(enable_name);
|
|
tooltip = CSTRING(enable_tooltip);
|
|
expression = QUOTE(if !(_value) then {_this setVariable [ARR_3('%s',_value,true)];};);
|
|
typeName = "BOOL";
|
|
condition = "objectVehicle";
|
|
defaultValue = QUOTE(GETMVAR(QGVAR(enable),true));
|
|
};
|
|
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";
|
|
condition = "objectHasInventoryCargo";
|
|
defaultValue = QUOTE(if (_this isKindOf 'ReammoBox_F') then { GETMVAR(QGVAR(enableAmmobox),true) } else { GETMVAR(QGVAR(enableAmmoCookoff),true) };);
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|