Skip to content

Commit

Permalink
Added: More builder boxes (#3098)
Browse files Browse the repository at this point in the history
* larger builder boxes

* removed two largest options

* stringtable adaptation

---------

Co-authored-by: Bob-Murphy <[email protected]>
  • Loading branch information
killerswin2 and Bob-Murphy authored Jan 23, 2024
1 parent f771de7 commit 4114cfe
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 3 deletions.
9 changes: 9 additions & 0 deletions A3A/addons/core/Stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13492,6 +13492,15 @@
<Turkish>Cephane İstasyonu</Turkish>
<Chinesesimp>弹药站</Chinesesimp>
</Key>
<Key ID="STR_A3A_Utility_Items_Name_buildboxcolossal">
<Original>Colossal construction kit</Original>
</Key>
<Key ID="STR_A3A_Utility_Items_Name_buildboxenormous">
<Original>Enormous construction kit</Original>
</Key>
<Key ID="STR_A3A_Utility_Items_Name_buildboxextralarge">
<Original>Extra Large construction kit</Original>
</Key>
<Key ID="STR_A3A_Utility_Items_Name_buildboxlarge">
<Original>Large construction kit</Original>
<Italian>Kit di costruzioni grande</Italian>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ if ("build" in _flags) then {
];
};

// building placer box with huge crap
if ("hugebuild" in _flags) then {
if(A3A_hasACE) then
{
[_object, 4] call ace_cargo_fnc_setSize;
};
// TODO: find a good way to calculate a new mass for these objects.
};

// packable object
if ("pack" in _flags) then {
_object addAction [
Expand Down
7 changes: 5 additions & 2 deletions A3A/addons/core/functions/init/fn_initUtilityItems.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ private _items = [
[_repairStation#0, _repairStation#1, "repairstation", "repair", ["cmmdr", "place", "move", "rotate", "pack", "save"]],
[FactionGet(reb,"vehicleLightSource"), 25, "light", "", ["move"]], // note: If we do want this saved, need to switch saveLoop to nearObjects
["Land_PlasticCase_01_medium_F", 100, "buildboxsmall", "", ["place", "move", "build"]],
["Land_PlasticCase_01_large_F", 500, "buildboxlarge", "", ["place", "move", "build"]]
// TODO: get larger box from somewhere
["Land_PlasticCase_01_large_F", 500, "buildboxlarge", "", ["place", "move", "build"]],
["Land_WoodenCrate_01_F", 1000, "buildboxextralarge", "", ["place", "move", "build"]],
["Land_WoodenCrate_01_stack_x5_F", 5000, "buildboxcolossal", "", ["place", "build", "hugebuild"]],
["Land_Cargo10_cyan_F", 10000, "buildboxenormous", "", ["place", "build", "hugebuild"]]

];

if (LootToCrateRadius == 0) then { _items deleteAt 0 };
Expand Down
37 changes: 36 additions & 1 deletion A3A/addons/logistics/Cargo/Vanilla.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,39 @@ class A3_Structures_F_Heli_Ind_Cargo_Cargo10_red_F_p3d: TRIPLES(ADDON,Cargo,Base
offset[] = {0,0.1,1.35};
rotation[] = {1,0,0};
size = 4;
};
};

class A3_Structures_F_Heli_Ind_Cargo_Cargo10_cyan_F_p3d : TRIPLES(ADDON,Cargo,Base)
{
offset[] = {0,0.1,1.35};
rotation[] = {1,0,0};
size = 4;
};

class A3_Structures_F_Ind_Cargo_Cargo20_cyan_F_p3d : TRIPLES(ADDON,Cargo,Base)
{
offset[] = {0,-0.3,1.3};
rotation[] = {1,0,0};
size = 7;
};

class A3_Structures_F_Ind_Cargo_Cargo40_cyan_F_p3d : TRIPLES(ADDON,Cargo,Base)
{
offset[] = {0,-4.44,1.1.35};
rotation[] = {1,0,0};
size = 12;
};

class A3_Props_F_Exp_Commercial_Market_WoodenCrate_01_F_p3d : TRIPLES(ADDON,Cargo,Base)
{
offset[] = {0,0,0.32};
rotation[] = {0,1,0};
size = 2;
};

class A3_Props_F_Exp_Commercial_Market_WoodenCrate_01_stack_x5_F_p3d : TRIPLES(ADDON,Cargo,Base)
{
offset[] = {0,0.5,0.97};
rotation[] = {0,1,0};
size = 3;
};

0 comments on commit 4114cfe

Please sign in to comment.