Garry's Mod

Garry's Mod

218 betyg
Simple Breakable Doors
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Realism
Filstorlek
Lades upp
Uppdaterades
5.109 KB
10 aug @ 14:06
11 aug @ 19:23
2 ändringsnotiser ( visa )

Abonnera för att ladda ner
Simple Breakable Doors

Beskrivning
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.
28 kommentarer
blobmin 27 nov @ 8:01 
hey could you add settings to specific types of doors so it could be destructible or not like the original mod? (if it is possible)
Killcommand 6 nov @ 16:27 
unhinge doors on
door collision 1
fade is off
Jiyū to anzen  [skapare] 6 nov @ 16:13 
@killcommand What settings do not work? I will fix that and the wrong gibs bug in the next update.
Killcommand 17 okt @ 15: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 8 sep @ 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 7 sep @ 23:33 
i tested it right after i sent the message, it does infact not work
Jiyū to anzen  [skapare] 7 sep @ 21: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 6 sep @ 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 2 sep @ 18:18 
does this fix the drgbase npcs when they break down doors?
giorgibob152 1 sep @ 15:29 
Thanks