Garry's Mod

Garry's Mod

41 个评价
Carrying Crate SENTs
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 模型
插件标签: 建筑, 写实
文件大小
发表于
更新日期
10.255 MB
2021 年 11 月 16 日 下午 10:17
2023 年 2 月 25 日 下午 7:16
9 项改动说明 ( 查看 )

订阅以下载
Carrying Crate SENTs

描述
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!
热门讨论 查看全部(2)
11
2023 年 2 月 25 日 下午 7:17
置顶: Bug Reports
Octo
5
2022 年 1 月 3 日 上午 10:19
置顶: Suggestions
Octo
14 条留言
Ardisco 2023 年 9 月 24 日 上午 4:17 
why is this so underrated
Octo  [作者] 2022 年 11 月 1 日 下午 8:16 
Thank you for your thorough bug report
bam bam bam bam 2022 年 11 月 1 日 上午 8:16 
broken
creepernator152 2022 年 7 月 8 日 下午 6: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.
美丽的 2022 年 2 月 4 日 上午 9:14 
uh the error that it gives is gibberish it doesnt even mean anything
美丽的 2022 年 2 月 4 日 上午 9:13 
but before it didnt
美丽的 2022 年 2 月 4 日 上午 9:13 
the error sign
美丽的 2022 年 2 月 4 日 上午 9:13 
all of them
Octo  [作者] 2022 年 1 月 3 日 上午 10:57 
What is the exact error that it gives you? And which one produces a missing model?
美丽的 2022 年 1 月 3 日 上午 10:18 
and it gives me an error model and i cant remove