Garry's Mod

Garry's Mod

170 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.
21 Comments
chewy 6 hours ago 
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?
catperson6 16 Aug @ 3:23am 
if i had a nickel for every breakable door addon id be a billionaire
Jiyū to anzen  [author] 15 Aug @ 9:42pm 
@KaliDitzy I forgot to add the required item, whoops. Download the required item and it should be fixed
KaliDitzy 15 Aug @ 9:38pm 
Breaks with area portals, please consider fixing this please :3