Garry's Mod

Garry's Mod

131 个评价
TTT: Lootable Props - Chance for items to drop when breaking crates
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 游戏模式
文件大小
发表于
1.124 KB
2016 年 3 月 27 日 上午 11:05
1 项改动说明 ( 查看 )

订阅以下载
TTT: Lootable Props - Chance for items to drop when breaking crates

描述
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 条留言
Jiyū to anzen 2024 年 12 月 7 日 上午 2:44 
ykw I'll do it myself
Jiyū to anzen 2024 年 6 月 17 日 下午 4:19 
we need a fixed sandbox version
Corvatile 2023 年 11 月 22 日 下午 3:34 
Seems to spawn items no matter what prop gets broken now, not just crates. I think it worked fine before.
Snorps 2022 年 2 月 22 日 上午 9:49 
Really doesn't look amateur to me, though the code has had all it's line breaks removed.
Estrogen Enjoyer 2019 年 2 月 28 日 上午 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 2018 年 1 月 20 日 下午 4:07 
omly in TTT?
DeWomanizer 9000 2017 年 7 月 18 日 上午 11:30 
Make for Sandbox pls
Maxpowerammo 2017 年 5 月 22 日 下午 11:59 
Could you make a version for Sandbox?
Bob 2016 年 10 月 31 日 下午 5: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 2016 年 9 月 2 日 上午 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.