mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
559a498e6d
* Add fast mouse actions to refuel * nobody seen that * Add interaction condition and refuel on ladder * Add car hit, fix change weapon on uncon * Replace objNull with nil in setVar, unify var names * Delete *ConnectNozzle functions * Delete reset* functions * Add public function and eden attributes * Remove static actions from RHS compat * Remove statusEffect_set on respawn * Fix dual menu, add deprecating message * Optimize fnc_takeNozzle * Cleanup
37 lines
1.8 KiB
C++
37 lines
1.8 KiB
C++
#define GET_NUMBER(config,default) (if (isNumber (config)) then {getNumber (config)} else {default})
|
|
#define GET_1ST_ARRAY(config) (if (isArray (config)) then {getArray (config) select 0} else {[ARR_3(0,0,0)]})
|
|
|
|
#define DEFAULT_FUELCARGO GET_NUMBER(configFile >> 'CfgVehicles' >> typeOf _this >> QQGVAR(fuelCargo),REFUEL_DISABLED_FUEL)
|
|
#define DEFAULT_HOOKS GET_1ST_ARRAY(configFile >> 'CfgVehicles' >> typeOf _this >> QQGVAR(hooks))
|
|
|
|
class Cfg3DEN {
|
|
class Object {
|
|
class AttributeCategories {
|
|
class ace_attributes {
|
|
class Attributes {
|
|
class GVAR(fuelCargo) {
|
|
displayName = CSTRING(fuelCargo_edenName);
|
|
tooltip = CSTRING(fuelCargo_edenDesc);
|
|
property = QGVAR(fuelCargo);
|
|
control = "EditShort";
|
|
expression = QUOTE(if (_value != DEFAULT_FUELCARGO) then {[ARR_2(_this,_value)] call DFUNC(makeSource)});
|
|
defaultValue = QUOTE(DEFAULT_FUELCARGO);
|
|
validate = "number";
|
|
condition = "(1-objectBrain)*(1-objectAgent)";
|
|
typeName = "NUMBER";
|
|
};
|
|
class GVAR(hooks) {
|
|
displayName = CSTRING(hooks_edenName);
|
|
tooltip = CSTRING(hooks_edenDesc);
|
|
property = QGVAR(hooks);
|
|
control = "EditXYZ";
|
|
expression = QUOTE(if !(_value isEqualTo DEFAULT_HOOKS) then {_this setVariable [ARR_3('%s',[_value],true)]});
|
|
defaultValue = QUOTE(DEFAULT_HOOKS);
|
|
condition = "(1-objectBrain)*(1-objectAgent)";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|