• PDMG - Prop Damage
    106 replies, posted
  • Avatar of Fantym420
  • PDMG - Prop Damage By Fantym Easy Prop Damage system for those that feel the need for destruction. [B]--- Pending Update ----[/B] 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. [t]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[/t] 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: [URL]http://propdamage.googlecode.com/svn/trunk/[/URL] Non-SVN (v3): [URL="http://www.garrysmod.org/downloads/?a=view&id=117655"][IMG]http://www.garrysmod.org/img/?t=dll&id=117655[/IMG].[/URL] Non-SVN (v3.5 ): [URL="http://www.garrysmod.org/downloads/?a=view&id=121138"][IMG]http://www.garrysmod.org/img/?t=dll&id=121138[/IMG].[/URL] 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!
  • Avatar of Fantym420
  • [QUOTE=zzaacckk;26893947]Nice release. Also, you sound out of breath throughout the whole video.[/QUOTE] yea, I was really tired when I made it, it was like 3am or something
  • Avatar of Wunce
  • 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.
  • Avatar of TheJjokerR
  • Nice. Though in the video, your voice reminds me of someone: [IMG]http://theurbanian.com/wp-content/uploads/2010/07/stevie-boy.png[/IMG]
  • Avatar of Fantym420
  • 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.
  • Avatar of Fantym420
  • [QUOTE=TheBricktop;26901426]Add some better effects on prop destroy, smoke puff or something.[/QUOTE] The effects are selectable in the options menu, there's a bunch in the list.
  • Avatar of Fantym420
  • 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
  • Avatar of CowThing
  • 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.
  • Avatar of Fantym420
  • I wanted to, but I couldn't find the list of tags availible, so it's img_thumb for images and media for videos?
  • Avatar of c-unit
  • 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
  • Avatar of Fantym420
  • 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.
  • Avatar of NitronikALT
  • [QUOTE=Covict Joe;27050516]Is it just me, or is this script VERY laggy?[/QUOTE] what do you mean? Also, this script looks really nice
  • Avatar of Covict Joe
  • [QUOTE=NitronikALT;27050700]what do you mean? Also, this script looks really nice[/QUOTE] on gm_flatgrass I get < 10 fps with this addon enabled and a fin plane I built while i usually get > 60 fps
  • Avatar of NitronikALT
  • [QUOTE=Covict Joe;27050923]on gm_flatgrass I get < 10 fps with this addon enabled and a fin plane I built while i usually get > 60 fps[/QUOTE] Oh, well, maybe the script contains some loops? (and thanks for clarification)
  • Avatar of Fantym420
  • v2.3: Optimized Code - A Lot of internal Changes Added Option to Unfreeze Props on low health
  • Avatar of Fantym420
  • [QUOTE=elowin;27173032]Finally, a good alternative to SPD, and even better too.[/QUOTE] Thank You, I should get my internet back at home tonight, so if anyone has any suggestions for more features or different functionalities I might be up for doin a few more updates.
  • Avatar of Fantym420
  • Just noticed a bug or feature, It seems my auto-heal code heals the player as well. I can either remove this all together, or add it as another option. I found it's almost impossible to die if you but the heal on 10 and the interval at 0. If I add it as a feature should it have it's own settings or just use the prop heal settings? If anyone finds any bugs please report them here, thank you and happy destruction.
  • Avatar of Fantym420
  • v2.5: Added Player Auto Heal Added NPC Auto Heal Cleaned Up Code A Bit Fixed Crash When Map Entities Are Killed (map entities ( func_ ) now do not receive health) If you've found any bugs, or can think of any more features please drop a reply or message my way. Thank you, and Happy Destruction!
  • Avatar of elowin
  • [QUOTE=Fantym420;27308782]v2.5: Added Player Auto Heal Added NPC Auto Heal Cleaned Up Code A Bit Fixed Crash When Map Entities Are Killed (map entities ( func_ ) now do not receive health) If you've found any bugs, or can think of any more features please drop a reply or message my way. Thank you, and Happy Destruction![/QUOTE] Woot!
  • Avatar of cis.joshb
  • Do entities have health too? Also you should make it so you can set if this applies to ragdolls, props, or entities in the menu. [editline]23rd January 2011[/editline] SVN dosen't work.
  • Avatar of matt1201
  • I found a bug with this. Whenever you kill an npc the ragdoll goes invisible but is still there. If you could fix this that would be great.
  • Avatar of Fantym420
  • [QUOTE=matt1201;27623617]I found a bug with this. Whenever you kill an npc the ragdoll goes invisible but is still there. If you could fix this that would be great.[/QUOTE] I'll look into that as soon as I can Edit: I Just tried it out, and nothing stays, what other addons do you have installed?
  • Avatar of Kung Fu Jew
  • Can you let us make a list of props that will never receive damage for example, Mad Cows Weapons has an incendiary grenade that literally burns itself to death and that's really dumb.