2023-07-28 09:47:23 +00:00
|
|
|
#define VANILLA_REARMCARGO (if (getAmmoCargo _this > 0) then {getAmmoCargo _this} else {-1})
|
2018-07-09 17:20:55 +00:00
|
|
|
#define GET_NUMBER(config,default) (if (isNumber (config)) then {getNumber (config)} else {default})
|
2023-07-28 09:47:23 +00:00
|
|
|
#define DEFAULT_REARMCARGO GET_NUMBER(configOf _this >> 'GVAR(defaultSupply)',VANILLA_REARMCARGO)
|
2018-07-09 17:20:55 +00:00
|
|
|
|
|
|
|
class Cfg3DEN {
|
|
|
|
class Object {
|
|
|
|
class AttributeCategories {
|
|
|
|
class ace_attributes {
|
|
|
|
class Attributes {
|
|
|
|
class GVAR(rearmCargo) {
|
|
|
|
displayName = CSTRING(rearmCargo_edenName);
|
|
|
|
tooltip = CSTRING(rearmCargo_edenDesc);
|
|
|
|
property = QGVAR(rearmCargo);
|
|
|
|
control = "EditShort";
|
|
|
|
expression = QUOTE(if (_value != DEFAULT_REARMCARGO) then {[ARR_2(_this,_value)] call DFUNC(makeSource)});
|
|
|
|
defaultValue = QUOTE(DEFAULT_REARMCARGO);
|
|
|
|
validate = "number";
|
|
|
|
condition = "(1-objectBrain)*(1-objectAgent)";
|
|
|
|
typeName = "NUMBER";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|