Garry's Mod

Garry's Mod

101 个评价
Loot for Breakable Objects
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
7.629 KB
2024 年 12 月 7 日 上午 4:02
7 月 1 日 上午 1:48
3 项改动说明 ( 查看 )

订阅以下载
Loot for Breakable Objects

描述
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.
17 条留言
sho 9 月 8 日 下午 3:53 
Please, could you make prop "models/Items/item_item_crate.mdl" have loot too?
Gake 9 月 3 日 下午 2:15 
Any chance of adding chance per item?
Gake 9 月 3 日 下午 1: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 8 月 30 日 下午 8:02 
this is QOL improving, very nice!!
Jiyū to anzen  [作者] 7 月 1 日 上午 1:49 
@Fuyu ⋆˙⟡ ハクウ Should work now
6 月 23 日 下午 9:58 
removing and clear doesnt do anything
:steamsad:
parrot 5 月 23 日 上午 10:51 
got it
Jiyū to anzen  [作者] 5 月 22 日 下午 2:50 
Forgot to fix that… I will update it soon.
parrot 5 月 22 日 下午 12:41 
removing doesnt do anything, i just try removing a half life revolver, doesnt know what that is
Jiyū to anzen  [作者] 5 月 21 日 下午 6:55 
I updated it and added some requested things, check the change notes!