mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge branch 'cargo' of github.com:acemod/ACE3 into cargo
Conflicts: addons/cargo/functions/fnc_initVehicle.sqf
This commit is contained in:
commit
03413ef6b6
@ -152,7 +152,8 @@ class CfgVehicles {
|
||||
GVAR(size) = 50;
|
||||
XEH_ENABLED;
|
||||
};
|
||||
class Land_Cargo20_military_ruins_F: Cargo_base_F {
|
||||
class Ruins_F;
|
||||
class Land_Cargo20_military_ruins_F: Ruins_F {
|
||||
GVAR(space) = 49;
|
||||
GVAR(size) = 50;
|
||||
XEH_ENABLED;
|
||||
@ -224,7 +225,7 @@ class CfgVehicles {
|
||||
GVAR(size) = 100;
|
||||
XEH_ENABLED;
|
||||
};
|
||||
class Land_Cargo40_military_ruins_F: Cargo_base_F {
|
||||
class Land_Cargo40_military_ruins_F: Ruins_F {
|
||||
GVAR(space) = 99;
|
||||
GVAR(size) = 100;
|
||||
XEH_ENABLED;
|
||||
|
@ -3,8 +3,8 @@
|
||||
* Check if item can be loaded into other Object
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Any object <OBJECT>
|
||||
* 1: Object <OBJECT>
|
||||
* 0: Item Object <OBJECT>
|
||||
* 1: Holder Object (vehicle) <OBJECT>
|
||||
*
|
||||
* Return value:
|
||||
* Can load in <BOOL>
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_loaded", "_position", "_validVehiclestate", "_emptyPos"];
|
||||
private ["_loaded", "_validVehiclestate", "_emptyPos"];
|
||||
params ["_item", "_vehicle"];
|
||||
_loaded = _vehicle getvariable [QGVAR(loaded), []];
|
||||
if !(_item in _loaded) exitwith {false};
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
params ["_vehicle"];
|
||||
|
||||
private["_loaded"];
|
||||
|
||||
_loaded = _vehicle getvariable [QGVAR(loaded), []];
|
||||
if (count _loaded == 0) exitwith {};
|
||||
|
||||
|
@ -49,8 +49,8 @@ SETMVAR(GVAR(initializedClasses),_initializedClasses);
|
||||
if (getNumber (configFile >> "CfgVehicles" >> _type >> QGVAR(hasCargo)) != 1) exitwith {};
|
||||
|
||||
private ["_text", "_condition", "_statement", "_icon", "_action"];
|
||||
_text = localize "STR_ACE_Cargo_openMenu";
|
||||
_condition = {GVAR(enable)};
|
||||
_text = localize LSTRING(openMenu);
|
||||
_statement = {GVAR(interactionVehicle) = _target; createDialog QGVAR(menu);};
|
||||
_icon = "";
|
||||
|
||||
|
@ -41,5 +41,5 @@ uiNamespace setvariable [QGVAR(menuDisplay), _display];
|
||||
true
|
||||
} count _loaded;
|
||||
|
||||
_label ctrlSetText format[localize "STR_ACE_Cargo_labelSpace", [GVAR(interactionVehicle)] call DFUNC(getCargoSpaceLeft)];
|
||||
_label ctrlSetText format[localize LSTRING(labelSpace), [GVAR(interactionVehicle)] call DFUNC(getCargoSpaceLeft)];
|
||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user