Garry's Mod

Garry's Mod

39 arvostelua
Carrying Crate SENTs
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: Model
Addon Tags: Build, Realism
Tiedostokoko
Julkaistu
Päivitetty
10.255 MB
16.11.2021 klo 22.17
25.2.2023 klo 19.16
9 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Carrying Crate SENTs

Kuvaus
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!
Suositut keskustelut Näytä kaikki (2)
11
25.2.2023 klo 19.17
TÄRKEÄ: Bug Reports
Octo
5
3.1.2022 klo 10.19
TÄRKEÄ: Suggestions
Octo
14 kommenttia
Ardisco 24.9.2023 klo 4.17 
why is this so underrated
Octo  [tekijä] 1.11.2022 klo 20.16 
Thank you for your thorough bug report
bam bam bam bam 1.11.2022 klo 8.16 
broken
creepernator152 8.7.2022 klo 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.2.2022 klo 9.14 
uh the error that it gives is gibberish it doesnt even mean anything
美丽的 4.2.2022 klo 9.13 
but before it didnt
美丽的 4.2.2022 klo 9.13 
the error sign
美丽的 4.2.2022 klo 9.13 
all of them
Octo  [tekijä] 3.1.2022 klo 10.57 
What is the exact error that it gives you? And which one produces a missing model?
美丽的 3.1.2022 klo 10.18 
and it gives me an error model and i cant remove