Garry's Mod

Garry's Mod

128 betyg
TTT: Lootable Props - Chance for items to drop when breaking crates
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Gamemode
Filstorlek
Lades upp
1.124 KB
27 mar, 2016 @ 11:05
1 ändringsnotis ( visa )

Abonnera för att ladda ner
TTT: Lootable Props - Chance for items to drop when breaking crates

Beskrivning
This addon adds a chance for ammunition and weapons to drop from breakable props upon breaking them. It is made for the Trouble In Terrorist Town gamemode. It should be compatible with all custom items from other addons, as long as the item is set to be automatically spawnable.

It is highly configurable, allowing you to customize the addon to fit your needs:

ttt_lootable_weapon_drop_chance - The percentage chance for the item in the prop to be a weapon. Set to 0 to disable. Default is 0.

ttt_lootable_drop_chance - The percentage chance for a prop to drop an item upon breaking it. Default is 33.

ttt_lootable_enabled - If set to 1, the TTT Lootable addon is enabled. Default is 1.

ttt_lootable_max_items_per_prop - The maximum number of items that can be dropped per prop. Default is 1.

ttt_lootable_only_appropriate_props - If set to 1, items can only be dropped from appropiate props like crates, drawers and drums. Default is 1.
12 kommentarer
Jiyū to anzen 7 dec, 2024 @ 2:44 
ykw I'll do it myself
Jiyū to anzen 17 jun, 2024 @ 16:19 
we need a fixed sandbox version
Corvatile 22 nov, 2023 @ 15:34 
Seems to spawn items no matter what prop gets broken now, not just crates. I think it worked fine before.
Snorps 22 feb, 2022 @ 9:49 
Really doesn't look amateur to me, though the code has had all it's line breaks removed.
Estrogen Enjoyer 28 feb, 2019 @ 10:22 
hey, this shits broken and the code isnt spaced at all. It's returning a bunch of nil values linking back to the create functions of the script but I can't find it because it looks like an amateur coder vomited on this .lua
Terra 20 jan, 2018 @ 16:07 
omly in TTT?
DeWomanizer 9000 18 jul, 2017 @ 11:30 
Make for Sandbox pls
Maxpowerammo 22 maj, 2017 @ 23:59 
Could you make a version for Sandbox?
Bob 31 okt, 2016 @ 17:49 
I know this was intended for TTT but, its still launchable on SandBox (See the first comment for error log).
Apparently; Trying to to create an entity 'entsCreate(l) tries to create an entity called l which returns 'nil'. Should be a string for (l) apparently. Could you help us up? Maybe Create a separate addon? Thanks in advance.
Postino 2 sep, 2016 @ 7:01 
You say that ttt_lootable_only_appropriate_props is set to 1 by default, yet when I break watermelons ammo shows up? It's a great addon, by the way.