PDMG - Prop Damage

PDMG - Prop Damage By Fantym

Easy Prop Damage system for those that feel the need for destruction.

— Pending Update ----

I just a beta key and am going to update this and get it up on the workshop…

However the first copy you’ll see on there should be the same as the last release, and may break as I update it, so be aware.

http://img163.imageshack.us/img163/1083/pdmgv32menu.jpg[/t] [t]http://img841.imageshack.us/img841/3026/gmbuildgrass0000.jpg[/t] [t]http://img43.imageshack.us/img43/5430/gmbuildgrass0002.jpg[/t] [t]http://img401.imageshack.us/img401/727/gmbuildgrass0001.jpg[/t]
[t]http://img156.imageshack.us/img156/8620/gmaitest0002.jpg[/t] [t]http://img822.imageshack.us/img822/5365/gmaitest0005.jpg[/t] [t]http://img192.imageshack.us/img192/3272/gmaitest0007.jpg[/t] [t]http://img248.imageshack.us/img248/2538/gmaitest0010.jpg[/t] [t]http://img140.imageshack.us/img140/5586/gmaitest0014.jpg

Video PDMG v3 :

Features:

  • Option Menu!!
  • Enable and Disable the Addon
  • Choose the effect displayed when props are destroyed.
  • Override Ragdoll Health
  • Override All Props Health
  • Calculate Prop health using Mass and Volume, Just Mass, or Just Volume
  • Random Health Generation if not using the above.
  • Auto-Heal Props - Amount and Interval
  • When to show Props Health
  • Prop Health when displayed will change from green to red based on health left.
  • Break Constraints on Low Prop Health with selectable percentage
  • Unfreeze prop on low health
  • Prop Healing SWEP
  • Spawnable Ammo Entity For SWEP
  • Auto-Heal Players - Amount and Interval
  • Auto-Heal NPCs - Amount and Interval
  • Visual Color Damage - Enable/Disable in Menu
  • Health Multiplier Option
  • Option to disable damage to different addon’s

Availible Via SVN:
http://propdamage.googlecode.com/svn/trunk/

Non-SVN (v3):
[http://www.garrysmod.org/img/?t=dll&id=117655

.](http://www.garrysmod.org/downloads/?a=view&id=117655)
Non-SVN (v3.5 ):
[http://www.garrysmod.org/img/?t=dll&id=121138

.](http://www.garrysmod.org/downloads/?a=view&id=121138)
NOTE:Non-SVN Versions are not updated as often as the SVN

To-Do:
Fix as needed
Add more exclusions to list.

Change Log:
=-=-=-=-=–=-=-=-=-
v4.20: Comming Soon, Just got the Beta.

v3.5:
Updated file structure, broke pdmg.lua in to 3 files
Fixed Break Constraints and UnFreeze so they can be disabled.
Changed SWEP to auto fire, 0.3 delay primary, 0.6 secondary
Updated the effect to come from the entity’s center of mass.
Removed Unneeded print’s and PrintTable’s

v3.2:
Added Check Marks for Exclusions will add custom text box for more exclusions later
Added Health Multiplier Option

v3.0:
Fixed Several Bugs dealing with enabling and disabling of things.
Added Visual Color Damage Effect, can be turned on and off in menu.
Made a bunch of stuff local, and changed the file name

v2.7:
Added PHX Explosives and Explosive Barrel to default exclusions

NOTE: If there are any more that should be added please post the model or if it’s an entity post the class and I’ll add them to the list when I get time.

v2.6:
Added pdmg_exclusions.lua to the autorun directory
It has 2 tables, pdmgClassEx and pdmgModelEx if you add
anything to the tables it will be excluded from taking damages.

v2.5:
Added Player Auto Heal
Added NPC Auto Heal
Cleaned Up Code A Bit
Fixed Crash When World Entities Are Killed
(map entities ( func_ ) now do not receive health)

v2.3:
Optimized Code - A Lot of internal Changes
Added Option to Unfreeze Props at low health

v2.2:
Fixed Health Display To Center On Entity
Changed Text Style and Added Green to Red Fade based on Health
Added sv_tags ability to code

v2.1:
Added Ammo Entity For SWEP

v2.0:
Added Auto-Heal
Added When to show Prop Health
Added Break Constraints on low health

v1.5:
Added Prop heal Swep - Uses Standard Battery Ammo
Added Options Menu

v1:
Released
-=-=-=-=-=-=-=-=-=-

And as always any suggestions are appreciated.

Happy Destruction!

Nice release.

Also, you sound out of breath throughout the whole video.

yea, I was really tired when I made it, it was like 3am or something

Is there a convar for when the constraints of a prop break?
Oh cool, I just read it again, that’s exactly what I wanted.

Nice.

Though in the video, your voice reminds me of someone:

http://theurbanian.com/wp-content/uploads/2010/07/stevie-boy.png

haha, LOL, I… Don’t… Know… what you’re WHEEEEZ* … Talking about.
I was getting very frustrated at the fraps demo, it’s hard to do a video 30 seconds at a time.

Add some better effects on prop destroy, smoke puff or something.

The effects are selectable in the options menu, there’s a bunch in the list.

Updated to v2.1: Added Ammo Entity for Heal SWEP

Updated to v2.2:
Fixed Health Display To Center On Entity
Changed Text Style and Added Green to Red Fade based on Health
Added sv_tags ability to code

You should use img_thumb tags in the opening post so we can see the pictures, and makes it look more professional.

eg:
[noparse][img_thumb]http://img258.imageshack.us/img258/7109/gmconstruct0001s.jpg[/img_thumb][/noparse]
will make
[img_thumb]http://img258.imageshack.us/img258/7109/gmconstruct0001s.jpg[/img_thumb]

And media tags for the youtube video.

I wanted to, but I couldn’t find the list of tags availible, so it’s img_thumb for images and media for videos?

Why don’t you code a nospread so you can actually hit the object. You miss like half your shots.

[editline]26th December 2010[/editline]

nice script though

Is it just me, or is this script VERY laggy?

I was noticing that just last night, i will work on optimizing it over the next couple of days, but my internet at home is down at the moment.

what do you mean?

Also, this script looks really nice

on gm_flatgrass I get < 10 fps with this addon enabled and a fin plane I built while i usually get > 60 fps

Oh, well, maybe the script contains some loops?

(and thanks for clarification)

v2.3:
Optimized Code - A Lot of internal Changes
Added Option to Unfreeze Props on low health

Finally, a good alternative to SPD, and even better too.