Author |
Message |
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
Haow to make shaped charge like explosion
I have tried to change spread on the gibs being ejected but that makes them only work when firing them one way. Dunno what to do. halp guys I need it for my armor piercing rocket launcher
|
Mon May 04, 2009 4:48 pm |
|
|
numgun
Joined: Sat Jan 13, 2007 11:04 pm Posts: 2932
|
Re: Haow to make shaped charge like explosion
Have the gibs have a special material with 0 bounce and -1 friction. Thats something Darlos did in his darkstorm sniper rifle.
|
Mon May 04, 2009 5:30 pm |
|
|
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
Re: Haow to make shaped charge like explosion
Ah, I think I'll go steal some code then. Thanks a lot numgun. edit: Weird, can't seem to get it to work. Now it does the same thing, just the other way
|
Mon May 04, 2009 5:50 pm |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: Haow to make shaped charge like explosion
you put the custom material on the fired particle. what darlos uses is a TDExplosive with a MOPixel behind it, but the material is on the TDExplosive. i use this all the time for anything that shoots explosives, but usually have it to a smaller value than -1. usually something like -0.6 make sure you include a new instance/presetname line so its not just the same material. good luck.
|
Tue May 05, 2009 5:24 am |
|
|
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
Re: Haow to make shaped charge like explosion
Okay, here's the important bit:
What you need to do is make sure the damaging gibs that come from the rocket have InheritsVel = 1 set. Then make sure the velocities and spread are set to low numbers, to allow some variation in where the gibs go, but to have them still mostly go on the same direction the rocket initially was.
The whole thing with Bounce = -1 was something I did because it didn't hurt, but it didn't seem to help a whole lot either. I forgot who initially suggested it to me.
|
Tue May 12, 2009 3:14 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: Haow to make shaped charge like explosion
Bounce = -1 makes it so the explosion (with inheritsVel = 1) doesnt bounce away from craft. with any normal bounce variable, the explosion will happen in the opposite direction, 0 should negate any inertia at all (but i cant remember if it does or not) and -1 emulates a shaped charge. But yeah, we should have specified InheritsVel = 1, though it defaults to on if not defined (ie if you dont have a line in the gib definition changing it, the game assumes it is 1).
|
Tue May 12, 2009 10:19 am |
|
|
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
Re: Haow to make shaped charge like explosion
Geti wrote: Bounce = -1 makes it so the explosion (with inheritsVel = 1) doesnt bounce away from craft. with any normal bounce variable, the explosion will happen in the opposite direction, 0 should negate any inertia at all (but i cant remember if it does or not) and -1 emulates a shaped charge. But yeah, we should have specified InheritsVel = 1, though it defaults to on if not defined (ie if you dont have a line in the gib definition changing it, the game assumes it is 1). Hm, good point. But I don't know whether or not InheritsVel = 0 had been specifically specified. Probably not, but if that's the case, then I don't understand why he says the explosion is only ever going in one direction. It shouldn't. Unless of course he has very high velocities set, which he shouldn't since the gibs only really need to inherit the velocity of the rocket.
|
Tue May 12, 2009 4:50 pm |
|
|
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
Re: Haow to make shaped charge like explosion
Can't get this shiz to work
|
Tue May 12, 2009 7:23 pm |
|
|
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
Re: Haow to make shaped charge like explosion
Sigh.
Give me your code.
Might as well do something until B23.
|
Wed May 13, 2009 3:10 am |
|
|
Miles_T3hR4t
Joined: Mon Jun 04, 2007 5:55 am Posts: 1627 Location: Ohio
|
Re: Haow to make shaped charge like explosion
um.... there's a spread variable. set it to 360, and tell the particles to inherit parent velocity. you somehow have it set to use those specific angles.
|
Wed May 13, 2009 4:20 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Haow to make shaped charge like explosion
Miles_T3hR4t wrote: um.... there's a spread variable. set it to 360, and tell the particles to inherit parent velocity. you somehow have it set to use those specific angles. Oh jesus CHRIST I love you miles. Spread is in radians. Spread has been in radians since D.I.R.T. 3.14 is the maximum amount radians go to. ♥♥♥♥. PERIOD. Do you really not think he's tried every combination of spread and inheritsvel that you can? (he has) I've also tried using velocity and even weird materials. Nothing ♥♥♥♥ works. But if you'd like to step up to the plate and actually DO some ♥♥♥♥ modding rather than speculating idly (stup idly) all the time, please, feel free to do so. I'd be happy to eat my words if you managed to accomplish this.
|
Wed May 13, 2009 5:51 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: Haow to make shaped charge like explosion
spread is in radians, but give us your code. me or darlos will fix it up for you.
|
Wed May 13, 2009 6:07 am |
|
|
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
Re: Haow to make shaped charge like explosion
There ya go, not sure if you had my DAPRL mod so I just uploaded the whole thing
|
Wed May 13, 2009 8:52 am |
|
|
TheDalaiLama
Joined: Sat May 16, 2009 10:58 am Posts: 3
|
Re: Haow to make shaped charge like explosion
Quote: 3.14 is the maximum amount radians go to. fudge. PERIOD. Pi radians = 180 degrees...
|
Mon May 18, 2009 6:46 pm |
|
|
mrah
Joined: Sat Aug 30, 2008 1:58 am Posts: 104
|
Re: Haow to make shaped charge like explosion
TheDalaiLama wrote: Quote: 3.14 is the maximum amount radians go to. fudge. PERIOD. Pi radians = 180 degrees... LMAO please tell me you're joking. I think we all know how radians work thanks... still doesn't change the fact that 3.14 is the maximum amount radians go to. Unfortunately.
|
Mon May 18, 2009 9:06 pm |
|
|
|