Garry's Mod

Garry's Mod

Ocen: 112
Loot for Breakable Objects
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Realism
Rozmiar pliku
Zamieszczono
Zaktualizowano
7.629 KB
7 grudnia 2024 o 4:02
1 lipca o 1:48
Listy zmian: 3 ( zobacz )

Zasubskrybuj, aby pobrać
Loot for Breakable Objects

Opis
Rewritten code of this guy's addon: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=654149429&searchtext=ttt+loot

Now works for sandbox!!

Basically allows many different props that it would make sense to contain stuff, contain loot. Also adds an optional chance for headcrabs to also pop out when looting props. Allows custom drops through use of Cvars too! Just refer to the console variables below to add custom entities and weapons to the default drop pool.

Cvars:
lootable_enabled 0/1 - enables/disables the mod
lootable_drop_chance 0-100 - determines chance of entity drops (0 to disable)
lootable_max_items_per_drop - determines max amount that can spawn (I don't reccomend anything past 15)
lootable_headcrab_chance 0-100 - determines chance of random heacrab npc in drop (0 to disable)
lootable_headcrab_ragdoll_chance 0-100 - determines chance of headcrab corpse in drop (0 to disable)
lootable_(add/remove)_entity - adds/removes entity from default spawnpool
lootable_clear_items - Removes all added entities from list
lootable_add_tab - adds all entities from specified tab in weapons or entities tab (If there is a space in tab's name, encase in quotation marks)

Please let me know of any problems, post lua error messages too.

Note: This works on a specific model basis unlike the original, so it doesn’t support custom breakable props or other source game props. If you suggest games or mods for me to support I will most likely do just that.

Tags: Breakable, lootable, props, object, system, crate, drawer, hl2, half-life 2, headcrabs, entities.
Komentarzy: 23
Vera 30 listopada o 10:50 
I did notice that when looking through the comments but I'd rather not sit around and wait for that to get finished when I could just get what I need out of this mod myself, I'm sure you understand.
Regardless I appreciate it, I'll be sure to look into your new mod when it's published.
Jiyū to anzen  [autor] 30 listopada o 10:41 
@Vera I don’t mind if anyone uses my work as long as I’m credited. But I will say I’m working on a new loot system that has a convar to disable the default loot pool, and this addon will be left as legacy.
Vera 30 listopada o 10:23 
Hey would you mind if I took the code from this and removed the default loot table and republished it? I'll be sure to add you as a creator and make sure you're getting full credit for your work of course, I just find the default loot table incredibly limiting.
Celery2 21 listopada o 11:50 
Holy crap this is so good. Perfect for a sandbox survival/looting build.
Zuletzt bearbeitet von REMO 17 listopada o 22:14 
can props drop from crates?
Jiyū to anzen  [autor] 28 października o 19:15 
New modular loot system addon is in the works and I plan to put this addon in it. So any problems will be resolved there.
sho 8 września o 15:53 
Please, could you make prop "models/Items/item_item_crate.mdl" have loot too?
Gake 3 września o 14:15 
Any chance of adding chance per item?
Gake 3 września o 13:59 
Hey, I love your mod, but I'm frustrated by the lack of ability to remove the default list from spawning. I'm trying to get the mod to only spawn plausibly civilian supplies and such from various mods, but it's still spawning guns and ammo.
TRY TO AIM 30 sierpnia o 20:02 
this is QOL improving, very nice!!