mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add setting for the type of cargo
This allow player to select the cargo type fitting their current game play periode of history
This commit is contained in:
parent
ba3726c697
commit
13e36c3b48
@ -37,7 +37,7 @@ if (_item isEqualType objNull) then {
|
|||||||
detach _item;
|
detach _item;
|
||||||
if !(_vehicle setVehicleCargo _item) then {
|
if !(_vehicle setVehicleCargo _item) then {
|
||||||
private _itemsCargo = _loaded arrayIntersect getVehicleCargo _vehicle;
|
private _itemsCargo = _loaded arrayIntersect getVehicleCargo _vehicle;
|
||||||
private _cargoNet = createVehicle ["CargoNet_01_box_F", [0, 0, 0], [], 0, "CAN_COLLIDE"];
|
private _cargoNet = createVehicle [GVAR(cargoNetType), [0, 0, 0], [], 0, "CAN_COLLIDE"];
|
||||||
if ([_vehicle, _cargoNet, _itemsCargo] call FUNC(canItemCargo)) then {
|
if ([_vehicle, _cargoNet, _itemsCargo] call FUNC(canItemCargo)) then {
|
||||||
while {!(_vehicle setVehicleCargo _cargoNet)} do { // Move ViV cargo to ACE Cargo
|
while {!(_vehicle setVehicleCargo _cargoNet)} do { // Move ViV cargo to ACE Cargo
|
||||||
if (_itemsCargo isEqualTo []) exitWith {deleteVehicle _cargoNet; /*Should not happen*/};
|
if (_itemsCargo isEqualTo []) exitWith {deleteVehicle _cargoNet; /*Should not happen*/};
|
||||||
|
@ -24,3 +24,12 @@
|
|||||||
true,
|
true,
|
||||||
{[QGVAR(paradropTimeCoefficent), _this, true] call EFUNC(common,cbaSettings_settingChanged)}
|
{[QGVAR(paradropTimeCoefficent), _this, true] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
] call CBA_settings_fnc_init;
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(cargoNetType), "LIST",
|
||||||
|
[LSTRING(cargoNetType), LSTRING(cargoNetType_description)],
|
||||||
|
[LELSTRING(OptionsMenu,CategoryLogistics), LLSTRING(openMenu)],
|
||||||
|
[["CargoNet_01_box_F", "Land_WoodenBox_02_F"], [LSTRING(cargoNetType_modernStyle), LSTRING(cargoNetType_ww2)], 0],
|
||||||
|
true,
|
||||||
|
{[QGVAR(cargoNetType), _this, true] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
@ -387,5 +387,17 @@
|
|||||||
<Czech>Upravuje jak dlouho nakládají/vykládání trvá.\nVýsledkem je čas v sekundách - velikost objektu vynásobená touto hodnotou.</Czech>
|
<Czech>Upravuje jak dlouho nakládají/vykládání trvá.\nVýsledkem je čas v sekundách - velikost objektu vynásobená touto hodnotou.</Czech>
|
||||||
<Spanish>Modifica el tiempo de carga/descarga de objetos.\n El Tiempo en segundos, es el tamño del objeto multiplicado por este valor.</Spanish>
|
<Spanish>Modifica el tiempo de carga/descarga de objetos.\n El Tiempo en segundos, es el tamño del objeto multiplicado por este valor.</Spanish>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Cargo_cargoNetType">
|
||||||
|
<English>Type of cargo</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Cargo_cargoNetType_description">
|
||||||
|
<English>Choose which cargo type will fit the period of history you are playing.</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Cargo_cargoNetType_modernStyle">
|
||||||
|
<English>Modern style</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Cargo_cargoNetType_ww2">
|
||||||
|
<English>World War 2</English>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user