Garry's Mod

Garry's Mod

192 个评价
Simple Breakable Doors
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
5.109 KB
8 月 10 日 下午 2:06
8 月 11 日 下午 7:23
2 项改动说明 ( 查看 )

订阅以下载
Simple Breakable Doors

描述
This addon is based off of this addon and is meant to be a more simple, vastly optimized version with a few differences.



Features:

-Gibbing doors

-Unhinging doors

--Axis constraint to simulate loose door hinge

--Won't allow you to damage huge doors such as blast doors and silos to keep realism

--Works with all door types! (func_movelinear not supported as it should not be used as a door in the first place)



ConVars:

sbd_unhinge_doors (1/0) - Unhinge doors as physics object instead of gibbing and removing.

sbd_door_collision (1-4) - Type of collision of unhinged door, where 1 = Everything, 2 = World only, 3 = Ignore other doors + debris, 4 = Ignore player only.

sbd_hinge_maxforce (INTEGER) - Sets force required to break axis constraint once created- set to 0 to skip constraint creation.

sbd_door_basehealth (INTEGER) - Sets base health of all doors, material types will still modify the base health (EX: Metal doors are 1.8X the base health.)

sbd_respect_state (1/0) - Sets if doors should not be breakable if they are locked.

sbd_door_fade (1/0) - Sets if door should fade away ten seconds after unhinging.

*Most ConVars will apply only after doors are recreated.




Thanks to NextKurome76TheSoldier for code reference.
25 条留言
Killcommand 13 小时以前 
some settings don't work like there is no unhinging and it gibs to wood on a metal door and they despawn any fixes
Zimbabwe #1 9 月 8 日 上午 11:08 
Can you edit the ConVars part of the description to show the default value for each option? Helps alot for people adding this addon to their server.
chewy 9 月 7 日 下午 11:33 
i tested it right after i sent the message, it does infact not work
Jiyū to anzen  [作者] 9 月 7 日 下午 9:36 
@chewy drgbase as far as I know uses its own system so I don't think this addon is compatible. Only the drgbase dev can fix it.
chewy 9 月 6 日 上午 5:10 
hey if i use the sbd_door_fade 0 on the doors will it still despawn once a drgbase nextbot (pumpkin rabbit, bon the rabbit, etc) because i really wanna have like the path of destruction that they can cause
PumpKing Man 9 月 2 日 下午 6:18 
does this fix the drgbase npcs when they break down doors?
giorgibob152 9 月 1 日 下午 3:29 
Thanks
Jiyū to anzen  [作者] 8 月 31 日 下午 2:13 
@giorgibob152 sbd_door_fade 0, its in the description
giorgibob152 8 月 31 日 下午 1:07 
How to stop doors from fading away?
walterwhite94 8 月 17 日 下午 1:34 
wallllllllllllllllllllllllllllta whie im the only real walterwhite im higher quality im 64.