mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Refuel - Simplify Actions, Fix Van_01 config
This commit is contained in:
parent
a5b88d3276
commit
ea140f63a5
@ -52,21 +52,13 @@
|
|||||||
#define MACRO_CONNECT_ACTIONS \
|
#define MACRO_CONNECT_ACTIONS \
|
||||||
class ACE_Actions { \
|
class ACE_Actions { \
|
||||||
class ACE_MainActions { \
|
class ACE_MainActions { \
|
||||||
class GVAR(Refuel) { \
|
class GVAR(Refuel_Connect) { \
|
||||||
displayName = CSTRING(Refuel); \
|
displayName = CSTRING(Connect); \
|
||||||
distance = REFUEL_ACTION_DISTANCE; \
|
distance = REFUEL_ACTION_DISTANCE; \
|
||||||
condition = "true"; \
|
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canConnectNozzle)); \
|
||||||
statement = ""; \
|
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(connectNozzle)); \
|
||||||
showDisabled = 0; \
|
|
||||||
priority = 2; \
|
|
||||||
icon = QPATHTOF(ui\icon_refuel_interact.paa); \
|
icon = QPATHTOF(ui\icon_refuel_interact.paa); \
|
||||||
class GVAR(Connect) { \
|
exceptions[] = {"isNotInside"}; \
|
||||||
displayName = CSTRING(Connect); \
|
|
||||||
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canConnectNozzle)); \
|
|
||||||
statement = QUOTE([ARR_2(_player,_target)] call DFUNC(connectNozzle)); \
|
|
||||||
exceptions[] = {"isNotInside"}; \
|
|
||||||
icon = QPATHTOF(ui\icon_refuel_interact.paa); \
|
|
||||||
}; \
|
|
||||||
}; \
|
}; \
|
||||||
}; \
|
}; \
|
||||||
};
|
};
|
||||||
@ -76,6 +68,7 @@
|
|||||||
class ACE_MainActions { \
|
class ACE_MainActions { \
|
||||||
displayName = CSTRING(Refuel); \
|
displayName = CSTRING(Refuel); \
|
||||||
distance = REFUEL_ACTION_DISTANCE; \
|
distance = REFUEL_ACTION_DISTANCE; \
|
||||||
|
position = "[0,-0.025,0.125]"; \
|
||||||
condition = "true"; \
|
condition = "true"; \
|
||||||
statement = ""; \
|
statement = ""; \
|
||||||
showDisabled = 0; \
|
showDisabled = 0; \
|
||||||
@ -318,13 +311,20 @@ class CfgVehicles {
|
|||||||
GVAR(fuelCapacity) = 80;
|
GVAR(fuelCapacity) = 80;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Van_01_fuel_base_F: Van_01_base_F {
|
class Van_01_fuel_base_F: Van_01_base_F {};
|
||||||
|
class C_Van_01_fuel_F: Van_01_fuel_base_F {
|
||||||
transportFuel = 0; //1k
|
transportFuel = 0; //1k
|
||||||
MACRO_REFUEL_ACTIONS
|
MACRO_REFUEL_ACTIONS
|
||||||
GVAR(hooks)[] = {{0.38,-3.17,-.7},{-0.41,-3.17,-.7}};
|
GVAR(hooks)[] = {{0.38,-3.17,-.7},{-0.41,-3.17,-.7}};
|
||||||
GVAR(fuelCargo) = 2000;
|
GVAR(fuelCargo) = 2000;
|
||||||
};
|
};
|
||||||
|
class I_G_Van_01_fuel_F: Van_01_fuel_base_F {
|
||||||
|
transportFuel = 0; //1k
|
||||||
|
MACRO_REFUEL_ACTIONS
|
||||||
|
GVAR(hooks)[] = {{0.38,-3.17,-.7},{-0.41,-3.17,-.7}};
|
||||||
|
GVAR(fuelCargo) = 2000;
|
||||||
|
};
|
||||||
|
|
||||||
class Tank_F: Tank {
|
class Tank_F: Tank {
|
||||||
GVAR(fuelCapacity) = 1200;
|
GVAR(fuelCapacity) = 1200;
|
||||||
};
|
};
|
||||||
|
@ -9,3 +9,16 @@ if (isServer) then {
|
|||||||
[QGVAR(resetLocal), {
|
[QGVAR(resetLocal), {
|
||||||
_this call FUNC(resetLocal);
|
_this call FUNC(resetLocal);
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef DEBUG_MODE_FULL
|
||||||
|
diag_log text format ["[ACE-refuel] Showing CfgVehicles with vanilla transportFuel"];
|
||||||
|
private _fuelTrucks = configProperties [configFile >> "CfgVehicles", "(isClass _x) && {(getNumber (_x >> 'transportFuel')) > 0}", true];
|
||||||
|
{
|
||||||
|
if ((configName _x) isKindOf "Car") then {
|
||||||
|
diag_log text format ["Car [%1] needs config [fuel: %2]", configName _x, getNumber (_x >> 'transportFuel')];
|
||||||
|
} else {
|
||||||
|
diag_log text format ["Non-car? [%1] needs config [fuel: %2]", configName _x, getNumber (_x >> 'transportFuel')];
|
||||||
|
};
|
||||||
|
} forEach _fuelTrucks;
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user