Garry's Mod

Garry's Mod

109 ratings
PDMG2: Prop Damage Mk. 2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Build, Fun
File Size
Posted
Updated
16.558 KB
2 Sep, 2013 @ 9:26am
19 Jan, 2018 @ 11:32am
9 Change Notes ( view )

Subscribe to download
PDMG2: Prop Damage Mk. 2

In 1 collection by TOASTEngineer
server collection
88 items
Description
PDMG is originally by Fantym. He has given me permission to maintain it and upload it to the workshop.

PDMG is an addon that allows all props to be damaged as if they were NPCs or wooden props. Anything that damages wooden props should damage any others with this installed! Wiremod Expression2 chips can read the prop's health as if it were an NPC as well, by using e:health().

PDMG should be compatible with any and every SWEP and prop pack. If you have any problems with it, let me know!

HOW TO USE:

PDMG will work right out of the box- just install it, and props will begin breaking when you shoot them. There are configuration options in the Options tab of your Q-Menu.

SERVER CONFIGURATION:

Since the config menu doesn't work for dedicated servers, here's a run-down of the basics:

find pdmg_ : Gives a listing of all PDMG convars and a short description.

pdmg_enabled : Turns PDMG on and off.
pdmg_props_only : Excludes anything that is not prop_physics from damage. Recommended if PDMG causes framerate issues for you.
pdmg_Ex_* : Exclusion rules. With these you can make certain large groups of entities invulnerable.
pdmg_exclude [things_to_exclude] : This concommand wil let you add individual classnames to the exclusion list at runtime. For example, "pdmg_exclude func_door gm_balloon" will tell PDMG to ignore doors and balloons. This doesn't persist accross map reloads or restarts; add it to your server config if you want something to be excluded all the time.
pdmg_use_threshold : Controls the "damage threshold" calculation, which makes it so that you can't destroy a tank with a crowbar no matter how many times you hit it. There's also a concommand that controls what percentage of the prop's HP the threshold is set to.
pdmg_ex_cutoff : Props with less than this much HP will be ignored by PDMG. This protects detail props and such from being destroyed while still allowing a contraption's frame to be broken by damage.

There's many others, but those are the ones you'll need to know the most. You really ought to reload the map after changing anything except the exclusion rules, props_only, use_threshold, or pdmg_enabled.

Current known bugs:

* Map-spawned doors are immune to explosive damage. Also, maps aren't really built to have their doors removed;
you may run in to stuff looking weird through the doorway or the doorway still being blocked after the door is gone. I'm working on a highly experimental solution to this but no promises.
* The Q-menu tab does not work in multiplayer (use pdmg_enabled 1/0 to turn it on/off on a server).

ATTN SERVER OWNERS:
There _used_ to be a crash bug where if a sawblade breaks while it's being embedded in to a wall it crashes the server - that's fixed now! If you added the sawblade to your exclusion list, you can take it out now.
187 Comments
Argon_Ironhammer 8 Sep, 2022 @ 12:20pm 
Is it possible to make a setting that will combine the health of items soldered together? That would be amazing!
Sedun 29 Jan, 2022 @ 6:24am 
how i dissable npc hud
Spartaguy300 30 Nov, 2021 @ 7:10pm 
I dont want props disappearing I want them to still be there when I completely destroy them
Kang Mag Dumper 1 Aug, 2021 @ 8:23am 
Hey, does this come with an unbreakable tool? Or is there one that is compatible.
TOASTEngineer  [author] 26 Mar, 2020 @ 9:34pm 
Ah, thanks. I'll fix that, uhh, eventually.
Revenant Moon sups.gg 24 Mar, 2020 @ 5:55pm 
concommand.Add("some_name",function(ply,cmd,args,argstring)
end)
ply is points to the player that ran the command or a NULL entity if ran from the console of a dedicated server.
uacnix 23 Mar, 2020 @ 6:06pm 
I kinda feel the pain cause i set up a server because of all this #StayAtHome :D:
TOASTEngineer  [author] 23 Mar, 2020 @ 3:20pm 
Sounds like Garry's Mod broke it or something... Normally I'd say I don't support this thing anymore, but since it's illegal to go outside anyway I guess I'll have a look sometimes soonish.
uacnix 23 Mar, 2020 @ 5:50am 
and "Console" is apparently not an admin :c
uacnix 22 Mar, 2020 @ 7:48pm 
If I do pdmg_exclude someshit in server's console, it stops on IsAdmin (nil value) :c
I can't do it as admin, cause its serverside...