Data Realms Fan Forums
http://45.55.195.193/

Haow to make shaped charge like explosion
http://45.55.195.193/viewtopic.php?f=1&t=14498
Page 1 of 2

Author:  p3lb0x [ Mon May 04, 2009 4:48 pm ]
Post subject:  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

Image

Author:  numgun [ Mon May 04, 2009 5:30 pm ]
Post subject:  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.

Author:  p3lb0x [ Mon May 04, 2009 5:50 pm ]
Post subject:  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 :|

Author:  Geti [ Tue May 05, 2009 5:24 am ]
Post subject:  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.

Author:  Darlos9D [ Tue May 12, 2009 3:14 am ]
Post subject:  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.

Author:  Geti [ Tue May 12, 2009 10:19 am ]
Post subject:  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).

Author:  Darlos9D [ Tue May 12, 2009 4:50 pm ]
Post subject:  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.

Author:  p3lb0x [ Tue May 12, 2009 7:23 pm ]
Post subject:  Re: Haow to make shaped charge like explosion

Can't get this shiz to work

Image

Author:  Darlos9D [ Wed May 13, 2009 3:10 am ]
Post subject:  Re: Haow to make shaped charge like explosion

Sigh.

Give me your code.

Might as well do something until B23.

Author:  Miles_T3hR4t [ Wed May 13, 2009 4:20 am ]
Post subject:  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.

Author:  Grif [ Wed May 13, 2009 5:51 am ]
Post subject:  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 (stupidly) all the time, please, feel free to do so. I'd be happy to eat my words if you managed to accomplish this.

Author:  Geti [ Wed May 13, 2009 6:07 am ]
Post subject:  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.

Author:  p3lb0x [ Wed May 13, 2009 8:52 am ]
Post subject:  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

Attachments:
DummyAPRL.rteSCLE.rar [16.82 KiB]
Downloaded 207 times

Author:  TheDalaiLama [ Mon May 18, 2009 6:46 pm ]
Post subject:  Re: Haow to make shaped charge like explosion

Quote:
3.14 is the maximum amount radians go to. fudge. PERIOD.


Pi radians = 180 degrees...

Author:  mrah [ Mon May 18, 2009 9:06 pm ]
Post subject:  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.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/