Garry's Mod

Garry's Mod

237 betyg
Simple Lootbox System [Customizable]
3
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
Filstorlek
Lades upp
Uppdaterades
109.880 KB
13 mar, 2023 @ 1:12
17 mar, 2023 @ 18:56
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
Simple Lootbox System [Customizable]

Beskrivning
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 kommentarer
HVenom 10 aug @ 11:46 
can you add an option for the lootboxes dropped by NPCs to disappear over time?
SoftRoom 10 maj @ 9:24 
спасибо большое , крутой мужик
GamePad  [skapare] 10 maj @ 8:46 
Механики для копирования и передачи конфигов внутри игры я не реализовывал, единственный вариант копирования и сохранения конфига это скопировать файл "lootboxdata.json", находящийся по пути GarrysMod\garrysmod\data. Их можно сохранить в отдельную папку и время от времени заменять эти файлы, главное оставлять имя как в изначальном файле чтобы аддон нашел файл.
SoftRoom 10 maj @ 8:16 
а можно скопировать конфиг предметов ?
🌸Дед Хаггис ® ⁴² 25 jul, 2024 @ 9:33 
И хотелось-бы чтобы можно было выбрать как будет отображаться коробка.
Типо вместо огромной коробки будет маленькая коробка.
Проще говоря чтобы в настройках можно было-бы изменить модель самой коробки.
🌸Дед Хаггис ® ⁴² 25 jul, 2024 @ 9:31 
Мод прикольный но нужно чтобы коробка не имела коллизии с NPC.
челол 7 jun, 2024 @ 14:35 
Как при заходе в игру сделать так чтобы лутбоксы были выключены? Не хочу постоянно заходить вручную выключать при заходе на карту а когда проходишь карты с телепортом на другие карты в сюжете халфы например сборник карт то очень раздражает.
[EGN] Blackfire 3 jun, 2024 @ 21:53 
hey gamerpad i have a question, can you change the model that the loot is or is it just a box
Малыш Камыш 20 maj, 2024 @ 10:58 
И было бы круто если бы дроп падал без коробки. (Или она сама открывалась)
Малыш Камыш 20 maj, 2024 @ 10:57 
А можно сделать авто-вставку конфига?