Garry's Mod

Garry's Mod

354 个评价
ISAWC: Inventory System and Working Containers
3
3
3
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
798.078 KB
2019 年 3 月 4 日 上午 4:35
8 月 2 日 上午 5:08
157 项改动说明 ( 查看 )

订阅以下载
ISAWC: Inventory System and Working Containers

描述
This is my idea of an inventory system where you can pick up any entity and store it in your inventory or a container for later use. All entities that do not break when duplicated are supported by this addon.

All players' inventories are saved within sv.db while ConVars and lists are saved in data/isawc_data.dat. You can save the containers' inventories just by saving the map.

All Minecraft assets belong to Mojang AB. I do not own any of them.

Features
Console
- There are many ConVars and ConCommands in this addon, all starting with "isawc_". Type "isawc_help" to view all of them.
- You can use the ConCommands starting with "isawc_activate_options_menu_" to open a more intuitive GUI interface for configuring this addon.

Inventory System
- Non-grid based.
- Amount of space all players have can be modified.
- Any entity can be picked up, as long as the entity is compatible with the Duplicator tool. (A ConVar can be enabled for non-physical entities to be picked up.)
- Range for automatic entity pickup can be configured.
- Bindings can also be configured, see the notifications displayed on spawn to learn how.
- Entities that shouldn't be picked up can be blacklisted. There are also ConVars and ConCommands to enable and manipulate whitelists.
- ConVar to control the maximum distance entities can be picked up from.
- Whole inventories can be dumped into a small box unless disabled.
- Currently held weapons can be stored unless disabled.
- Ammo on a player can be turned into inventory items via item stamps.
- Player inventories are saved by default, this can be controlled with ConVars.
- ConVar to cause players to drop their inventory on death.

Items
- All items have mass and volume. Space occupied by any entity can be modified.
- Additional tooltips and custom images can be defined for picked up items.
- Picked up items can be deleted unless disabled.
- Administrators can save items as item stamps, which can be restored infinitely, regardless of map, until deleted.
- Ammo from weapons can be removed inside an inventory, giving the ammo to the player.

Containers
- Huge array of containers from props of the Half-Life 2 series.
- Custom containers can be made with a special admin-only SWEP.
- 100% save and dupe compatible. You can put containers in containers.
- Range for automatic entity pickup can be configured.
- Containers can be made breakable.
- Containers can be made personal, such that each player will have their own inventory on the same container.
- Containers can be synchronized with other containers. All synced containers will always share the same inventory.
- Highly configurable loot table system, loot tables can be attached to containers using a special SWEP.

Others
- Inventory Exporter, to get items out of containers.
- "Weighing" Scale, to measure how much mass and volume an entity will occupy in an inventory.

Need more models? I've tried to convert some models into backpacks/containers from these addons:
Unofficial Minecraft Model Pack
TDMCars - Trailer Pack
FO3 Backpacks
Simply enable the relevant addon to add additional models.



If you have any suggestions, bug reports, requests or questions, you can feel free to comment down below. I'm pretty attentive towards the comment section, but try to at least read the Frequently Asked Questions discussion before commenting.

Finally, you can find the source code of this addon on my GitHub Repository[github.com].
热门讨论 查看全部(6)
3
2024 年 6 月 16 日 上午 10:43
My items didn't spawn when I dropped them
Gvbavx
3
4 月 17 日 上午 11:21
置顶: Frequently Asked Questions
Piengineer12
3
2024 年 2 月 29 日 下午 5:34
how to use the backpacks
Spo0ds
1,227 条留言
maxim.kirichko 10 月 22 日 下午 1:43 
Can you make it compatible with Jmod backpacks?
Lab 8 月 1 日 上午 12:46 
And
[ISAWC: Inventory System and Working Containers] lua/autorun/isawc_base.lua:8163: no such table: isawc_item_stamps
1. error - [C]:-1
2. SQL - lua/autorun/isawc_base.lua:5919
3. RestoreItemStamp - lua/autorun/isawc_base.lua:8163
4. ReceiveMessage - lua/autorun/isawc_base.lua:7569
5. func - lua/autorun/isawc_base.lua:7862
6. unknown - lua/includes/extensions/net.lua:34
while storing ammo.
Maybe the recent Gmod updates broke them?
Lab 8 月 1 日 上午 12:40 
] isawc_activate_options_menu_server

[ISAWC: Inventory System and Working Containers] lua/autorun/isawc_base.lua:4159: no such table: isawc_item_stamps
1. error - [C]:-1
2. SQL - lua/autorun/isawc_base.lua:5919
3. GetClientToOpenOptionsMenu - lua/autorun/isawc_base.lua:4159
4. unknown - lua/autorun/isawc_base.lua:1764
5. unknown - lua/includes/modules/concommand.lua:54 (x2)
CommonSay 7 月 7 日 上午 10:01 
Looks like it's only custom containers that're bugged with MMM
CommonSay 7 月 7 日 上午 6:03 
Also, if I enable "use constants", player inventories become immutable in their stats
CommonSay 7 月 6 日 下午 4:26 
How do I save a container to the map? I've tried using Modest Map Manipulator, and Permaprops, but upon reloading, both just turn the container into a melon without the properties of the original container.
Piengineer12  [作者] 6 月 21 日 上午 12:22 
I haven't seen why it wouldn't be.
ddfarmer03 6 月 20 日 下午 4:06 
is this compatible with your other addon insane stats?
Piengineer12  [作者] 6 月 12 日 上午 4:51 
You press the Use key (which is E by default) to open a container, which means that the container itself must be a solid object.
Vladimir4757 6 月 12 日 上午 4:33 
Stupid question but its been so long how do I loot containers? I see there are items in the container but I cannot loot the container. isawc_container_alwayspublic is set to 1. If i use the pickup button it instead picks the container up. Pressing E does nothing at all. I opens up my inventory.