Garry's Mod
237 valoraciones
Simple Lootbox System [Customizable]
3
2
   
Premiar
Favoritos
Favorito
Quitar
Tipo de contenido: Extensión
Tipo de extensión: Contenido del servidor
Etiqueta de extensión: Diversión, Juego de rol
Tamaño
Publicado el
Actualizado el
109.880 KB
13 MAR 2023 a las 1:12
17 MAR 2023 a las 18:56
4 notas sobre cambios ( ver )

Suscríbete para descargar
Simple Lootbox System [Customizable]

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