Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: More builder boxes #3098

Merged
merged 3 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions A3A/addons/core/Stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12753,6 +12753,21 @@
<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_buildboxgargantuan">
<Original>Gargantuan construction kit</Original>
</Key>
<Key ID="STR_A3A_Utility_Items_Name_buildboxhumongous">
<Original>Humongous 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
9 changes: 7 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,13 @@ 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"]],
["Land_Cargo20_cyan_F", 50000, "buildboxhumongous", "", ["place", "build", "hugebuild"]],
["Land_Cargo40_cyan_F", 100000, "buildboxgargantuan", "", ["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;
};