Garry's Mod

Garry's Mod

237 个评价
Simple Lootbox System [Customizable]
3
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
109.880 KB
2023 年 3 月 13 日 上午 1:12
2023 年 3 月 17 日 下午 6:56
4 项改动说明 ( 查看 )

订阅以下载
Simple Lootbox System [Customizable]

描述
This addon adds a lootbox that can be customized.

All settings are in Options -> Simple Lootbox System -> Options.

There you can change the parameter of the chance of drop an item, and also edit items that may drop from the lootbox (You can only add an entity, any vehicle or prop will create an error. In the future I will add support for transport and prop's).

I tested the support with Gredwitch Base, TFA Base, Arctic Night Vision, and everything worked stably without any errors. So I think any others will also work stably (Again, except for the prop's and vehicles)

Added 4 console commands:

lb_dropchance 1-100 (Changes the drop chance, the same as the slider in Options).
lb_menu (Opens the lootbox settings menu).
lb_enabledropnpc 0-1 (Allows you to enable or disable the drop of a lootbox with an npc after death)
lb_npcdropchance 1-100 (Changes the chance of dropping a lootbox from an npc)

The loot box itself is stylized with white edging and when pointing at it, an inscription appears showing the chance of falling out.

This is one of my first addons, and for sure there are bugs in it that I didn't notice, so I will be very grateful if you write about errors, I will try to fix them from time to time. (Also sorry for my bad english :D)
67 条留言
HVenom 8 月 10 日 上午 11:46 
can you add an option for the lootboxes dropped by NPCs to disappear over time?
SoftRoom 5 月 10 日 上午 9:24 
спасибо большое , крутой мужик
GamePad  [作者] 5 月 10 日 上午 8:46 
Механики для копирования и передачи конфигов внутри игры я не реализовывал, единственный вариант копирования и сохранения конфига это скопировать файл "lootboxdata.json", находящийся по пути GarrysMod\garrysmod\data. Их можно сохранить в отдельную папку и время от времени заменять эти файлы, главное оставлять имя как в изначальном файле чтобы аддон нашел файл.
SoftRoom 5 月 10 日 上午 8:16 
а можно скопировать конфиг предметов ?
🌸Дед Хаггис ® ⁴² 2024 年 7 月 25 日 上午 9:33 
И хотелось-бы чтобы можно было выбрать как будет отображаться коробка.
Типо вместо огромной коробки будет маленькая коробка.
Проще говоря чтобы в настройках можно было-бы изменить модель самой коробки.
🌸Дед Хаггис ® ⁴² 2024 年 7 月 25 日 上午 9:31 
Мод прикольный но нужно чтобы коробка не имела коллизии с NPC.
челол 2024 年 6 月 7 日 下午 2:35 
Как при заходе в игру сделать так чтобы лутбоксы были выключены? Не хочу постоянно заходить вручную выключать при заходе на карту а когда проходишь карты с телепортом на другие карты в сюжете халфы например сборник карт то очень раздражает.
[EGN] Blackfire 2024 年 6 月 3 日 下午 9:53 
hey gamerpad i have a question, can you change the model that the loot is or is it just a box
Малыш Камыш 2024 年 5 月 20 日 上午 10:58 
И было бы круто если бы дроп падал без коробки. (Или она сама открывалась)
Малыш Камыш 2024 年 5 月 20 日 上午 10:57 
А можно сделать авто-вставку конфига?