• Prop Damage Script?
    28 replies, posted
Does anyone have a nice working prop damage script? I know all the ones on garrysmod.org are horrible. Thanks in advance!
Get that noob ass admin of yours C to the UNIT to make one for you [editline]10th December 2010[/editline] wait
I prolly should. I need to whip his ass to get some stuff done!
CDS or combat damage system GCombat Pew Pew Or if your looking for just single entities, explosive entities tool.
I've been working on a basic one, it's almost finished. What features are you looking for in a prop damage system?
[QUOTE=Fantym420;26658159]I've been working on a basic one, it's almost finished. What features are you looking for in a prop damage system?[/QUOTE] In all honesty, I'd like to see an options/menu for the prop damage system with these choices. [list]Value to multiply weight of object to, in order to determine health.[i](A value of 1 would multiply the weight times 1.)[/i][/list] [list]Value to multiply SWEP damage on props. [i](A value of 0 would make SWEPS do no damage.)[/i][/list] [list]Value to multiply physics damage on props. [i](A value of 1 would leave default physics damage, or force when something is thrown or slammed on the prop)[/i][/list] [list]An Option to set the Prop's disappearance effect. [i]Explode, Burn up, Vaporize, Disappear[/i][/list] [list]An Option to show/not show the prop's health when the layer looks at it.[/list] [list]An Option to disable/enable Prop Damage entirely.[/list] These were just some thoughts I had, and would want, in a Prop Damage system. (Take them in moderation.)
Ok, thank you, i'll see what I can do with these Ideas, and anymore Ideas are still welcome.
[QUOTE=Fantym420;26677269]Ok, thank you, i'll see what I can do with these Ideas, and anymore Ideas are still welcome.[/QUOTE] Hey let me know when you're completed with your script. I'm interested! Steam: diet_taco
Thanks you for stealing my thread. Anywho, it would just need to be simple, with maybe a tool or weapon that resets a props health?
Ok, I'll work on a simple version first, then a version with configurable features. The way it's currently working is to calculate the health from mass and volume, and things just disappear when killed. You can add or remove health with the standard Health tool, however I will make a Health reset tool that will not go over max health.
[url]http://www.facepunch.com/threads/562270-Simple-Prop-Damage[/url] It doesn't get any simpler than simple prop damage. Although I believe it's lacking some of the features taco asked for, it's still good until Fanty finishes his.
[QUOTE=Morcam;26701653][url]http://www.facepunch.com/threads/562270-Simple-Prop-Damage[/url] It doesn't get any simpler than simple prop damage. Although I believe it's lacking some of the features taco asked for, it's still good until Fanty finishes his.[/QUOTE] I'm not sure I like the explosion. This script is for an RP by the way! Can someone give me an edited version of that without the explosions?
[QUOTE=Dwatring;26701830]I'm not sure I like the explosion. This script is for an RP by the way! Can someone give me an edited version of that without the explosions?[/QUOTE] Er... What? It's not for RP. But considering there's not much to the code, just look for the effect line. Can't be difficult.
[QUOTE=Morcam;26704194]Er... What? It's not for RP. But considering there's not much to the code, just look for the effect line. Can't be difficult.[/QUOTE] Sorry, I made that sound weird didn't I! I meant to say the script I am looking for is going on a roleplay server.
Do you want any effect when it dies or just make it disappear?
[QUOTE=Fantym420;26707391]Do you want any effect when it dies or just make it disappear?[/QUOTE] Disappear would be great. Or something very small.
[QUOTE=Fantym420;26707391]Do you want any effect when it dies or just make it disappear?[/QUOTE] Personally, I think a vaporize would be cool. Where is freezes and then slowly fades after it breaks. *Personal opinion :D
Here's what I have so far, it's a simple version, but I do think i'll add a menu later. It's controlled using convar's but works without config. [url]http://www.garrysmod.org/downloads/?a=view&id=114912[/url]
[QUOTE=Fantym420;26717800]Here's what I have so far, it's a simple version, but I do think i'll add a menu later. It's controlled using convar's but works without config. [url]http://www.garrysmod.org/downloads/?a=view&id=114912[/url][/QUOTE] cool! Testing now!
For a way of repairing things, would a STOOL or a SWEP be better?
[QUOTE=Fantym420;26721191]For a way of repairing things, would a STOOL or a SWEP be better?[/QUOTE] Swep
How does this sound? [code] Prop Heal SWEP 20 Rounds Per Clip, 200 Max Ammo Primary: Fire 1 Round Secondary: Fire Till Target Is Healed Or Clip is Empty +20 Health Per Round [/code] This is what I was thinking, it may take me a little to finish maybe by end of week, I haven't made many SWEPs before. Should there be an effect on the prop when the SWEP is fired? And is it working ok so far?
[QUOTE=Fantym420;26724916]How does this sound? [code] Prop Heal SWEP 20 Rounds Per Clip, 200 Max Ammo Primary: Fire 1 Round Secondary: Fire Till Target Is Healed Or Clip is Empty +20 Health Per Round [/code] This is what I was thinking, it may take me a little to finish maybe by end of week, I haven't made many SWEPs before. Should there be an effect on the prop when the SWEP is fired? And is it working ok so far?[/QUOTE] IMO,a wrench would fit better,and with little wrenches being emitted from the prop healed,something like the tf2 healthbuff effect. There is a wrench viewmodel on garrysmod.org.
I was trying to not use custom models, but maybe. Does it have a Worldmodel too or just the Viewmodel?
[QUOTE=Fantym420;26732027]I was trying to not use custom models, but maybe. Does it have a Worldmodel too or just the Viewmodel?[/QUOTE] There is no worldmodel for that,you can use the hl2 wrench as a worldmodel and then with a little lua script you can move the wrench from the crotch to the right hand. BRB finding the script. [editline]16th December 2010[/editline] Only clientside,screw around with HoldPos and HoldAng,credits to AndrewMcWatters [lua] SWEP.HoldPos=Vector(0,0,0) SWEP.HoldAng=Vector(0,0,0) function SWEP:DrawWorldModel() if !IsValid(self:GetOwner()) then self:DrawModel(); return end if ( !self.m_hHands ) then self.m_hHands = self:GetOwner():LookupAttachment( "anim_attachment_RH" ); end local hand = self:GetOwner():GetAttachment( self.m_hHands ); if !hand then return end local offset = hand.Ang:Right() * self.HoldPos.x + hand.Ang:Forward() * self.HoldPos.y + hand.Ang:Up() * self.HoldPos.z; hand.Ang:RotateAroundAxis( hand.Ang:Right(), self.HoldAng.x ); hand.Ang:RotateAroundAxis( hand.Ang:Forward(), self.HoldAng.y ); hand.Ang:RotateAroundAxis( hand.Ang:Up(), self.HoldAng.z ); self:SetRenderOrigin( hand.Pos + offset ) self:SetRenderAngles( hand.Ang ) self:DrawModel(); end [/lua]
Added SWEP (not a wrench) Added Options Menu Lemme know what you think, I can probably do a different model on the SWEP if needed. [url]http://www.garrysmod.org/downloads/?a=view&id=114961[/url]
[QUOTE=Fantym420;26738123]Added SWEP (not a wrench) Added Options Menu Lemme know what you think, I can probably do a different model on the SWEP if needed. [url]http://www.garrysmod.org/downloads/?a=view&id=114961[/url][/QUOTE] Great Addon! Absolutely loving it, but I think for a v2.0 you should add... [list]Option to enable/disable props unfreeze, and remove constraints when at low health. (SPD has this.)[/list] [list]Option to show/not show health when the player looks at the prop.[/list] [b]Once again I love the addon, options/menus always make it twenty times better![/b]
[QUOTE=Diet Taco;26790709]Great Addon! Absolutely loving it, but I think for a v2.0 you should add... [list]Option to enable/disable props unfreeze, and remove constraints when at low health. (SPD has this.)[/list] [list]Option to show/not show health when the player looks at the prop.[/list] [b]Once again I love the addon, options/menus always make it twenty times better![/b][/QUOTE] I also replied to the garrysmod.org message, but those features sound good to me and i'll try and add em but it might not be till after the holidays, then i'm also gonna do an svn for it and it's own thread.
Released! PDMG - Prop Damage v2 [url]http://www.facepunch.com/threads/1041066-PDMG-Prop-Damage?p=26893531[/url]
Sorry, you need to Log In to post a reply to this thread.