Garry's Mod

Garry's Mod

39 ratings
Carrying Crate SENTs
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Model
Addon Tags: Build, Realism
File Size
Posted
Updated
10.255 MB
16 Nov, 2021 @ 10:17pm
25 Feb, 2023 @ 7:16pm
9 Change Notes ( view )

Subscribe to download
Carrying Crate SENTs

Description
This addon adds several scripted entities that act as storage for props and other entities. Pressing the use key on a crate will secure all contents within it, and pressing the use key on it again will release it. Some crates can lose their loads when tipped too far. This addon has wiremod support, with an input that acts like using the entity, and one as output for checking if it is currently holding something. Crates will not attempt to pick up anything constrained to them nor things parented to them/anything they are parented to. And yes, crates can hold other crates with stable behavior. Picking up complex contraptions, like acf vehicles, is perfectly stable, though there can be unwanted physics engine side effects when they are released again. I am currently investigating this, but it never causes server slowdowns nor crashes.

There is a customizable crate entitiy as well, though it is currently in development. It is stable, but just lacks some quality of life features. Right now their size limits are 512 units, but soon I will add a console variable to allow users to change that limit, as well as add indication as to how large the area is with a wireframe box outline.

If you are looking to add your own crates, feel free to decompile the .gma, and inside the lua folder is a template.lua file with everything you need to make your own crates, as well as the ones in this addon as examples in case you get lost.

Truck beds, dumpster, and shipping container models by Geemar. Everything else by me, Octo.

List of serverside console variables:
Variable
Default Value
Minimum Value
Maximum Value
Description
carrying_crate_max_connected_ents
6
1
65535
The number of entities connected to a secured prop that will also be parented to the crate. Good for controlling performance, as large contraptions will cause lag spikes when parented all at once. Some contraptions are not physically stable when being unloaded.
carrying_crate_force_mass_accumulation
0
0
2
0 = Entity's choice. 1 = Force mass acumulation for all crates. 2 = Disable mass accumulation for all crates. This determines if the crate's physical weight is changed to equal its contents, since parenting removes physics.
carrying_crate_force_content_validation
0
0
2
Content validation checks to see if the prop trying to be carried has its center of mass within the crate boundaries. If it is not then it will not be carried. 0 = Entity's choice. 1 = Force content validation for all crates. 2 = Disable content validation for all crates.

If you liked my addon, be sure to rate it up so more people notice it and consequently help me improve it further!
Popular Discussions View All (2)
11
25 Feb, 2023 @ 7:17pm
PINNED: Bug Reports
Octo
5
3 Jan, 2022 @ 10:19am
PINNED: Suggestions
Octo
14 Comments
Ardisco 24 Sep, 2023 @ 4:17am 
why is this so underrated
Octo  [author] 1 Nov, 2022 @ 8:16pm 
Thank you for your thorough bug report
bam bam bam bam 1 Nov, 2022 @ 8:16am 
broken
creepernator152 8 Jul, 2022 @ 6:25pm 
do you think you could add a storage shelf (or multiple different shelfs) that is for aesthetic purposes? entities can be put on the shelf but it cant lose items if tipped over. press E to lock or unlock items on the shelf if you wanna take/put something.
美丽的 4 Feb, 2022 @ 9:14am 
uh the error that it gives is gibberish it doesnt even mean anything
美丽的 4 Feb, 2022 @ 9:13am 
but before it didnt
美丽的 4 Feb, 2022 @ 9:13am 
the error sign
美丽的 4 Feb, 2022 @ 9:13am 
all of them
Octo  [author] 3 Jan, 2022 @ 10:57am 
What is the exact error that it gives you? And which one produces a missing model?
美丽的 3 Jan, 2022 @ 10:18am 
and it gives me an error model and i cant remove