Garry's Mod

Garry's Mod

41 beoordelingen
Carrying Crate SENTs
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Content Type: Addon
Addon Type: Model
Addon Tags: Build, Realism
Bestandsgrootte
Geplaatst op
Bijgewerkt op
10.255 MB
16 nov 2021 om 22:17
25 feb 2023 om 19:16
9 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Carrying Crate SENTs

Omschrijving
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!
Populaire discussies Alles weergeven (2)
11
25 feb 2023 om 19:17
BELANGRIJK: Bug Reports
Octo
5
3 jan 2022 om 10:19
BELANGRIJK: Suggestions
Octo
14 opmerkingen
Ardisco 24 sep 2023 om 4:17 
why is this so underrated
Octo  [auteur] 1 nov 2022 om 20:16 
Thank you for your thorough bug report
bam bam bam bam 1 nov 2022 om 8:16 
broken
creepernator152 8 jul 2022 om 18:25 
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 om 9:14 
uh the error that it gives is gibberish it doesnt even mean anything
美丽的 4 feb 2022 om 9:13 
but before it didnt
美丽的 4 feb 2022 om 9:13 
the error sign
美丽的 4 feb 2022 om 9:13 
all of them
Octo  [auteur] 3 jan 2022 om 10:57 
What is the exact error that it gives you? And which one produces a missing model?
美丽的 3 jan 2022 om 10:18 
and it gives me an error model and i cant remove