Garry's Mod

Garry's Mod

185 ratings
Simple Breakable Doors
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
5.109 KB
10 Aug @ 2:06pm
11 Aug @ 7:23pm
2 Change Notes ( view )

Subscribe to download
Simple Breakable Doors

Description
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.
24 Comments
Zimbabwe #1 8 Sep @ 11:08am 
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 7 Sep @ 11:33pm 
i tested it right after i sent the message, it does infact not work
Jiyū to anzen  [author] 7 Sep @ 9:36pm 
@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 6 Sep @ 5:10am 
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 2 Sep @ 6:18pm 
does this fix the drgbase npcs when they break down doors?
giorgibob152 1 Sep @ 3:29pm 
Thanks
Jiyū to anzen  [author] 31 Aug @ 2:13pm 
@giorgibob152 sbd_door_fade 0, its in the description
giorgibob152 31 Aug @ 1:07pm 
How to stop doors from fading away?
walterwhite94 17 Aug @ 1:34pm 
wallllllllllllllllllllllllllllta whie im the only real walterwhite im higher quality im 64.
Major Mozzer 16 Aug @ 1:19pm 
Does this conflict with TFA which also has door breaching?