Data Realms Fan Forums
http://868000.nnhp.asia/

High Explosive ammo from scratch
http://868000.nnhp.asia/viewtopic.php?f=73&t=45982
Page 1 of 1

Author:  Galacticruler [ Fri Aug 14, 2015 6:07 pm ]
Post subject:  High Explosive ammo from scratch

Would anyone mind assisting me with making a script for the ammo on a gun I'm creating to use, I need it to explode on hit after a few miliseconds and do a small concusive-like blast.

Do note I've never truely experimented with LUA and will probably need lots of help.
EDIT: This is of course if it even is needed to use Lua for HE ammo. I am unaware of ways to do it outside of it though.

Author:  SnowMonster20 [ Fri Aug 14, 2015 9:34 pm ]
Post subject:  Re: High Explosive ammo from scratch

You can do this through ini. Just make your round an AEMitter and have it gib the explosion. A low impulse limit will make it more likely to explode on impact.

EDIT: if you want the round to stun enemies then there is a few mods you can look into for stun rounds. I also have an old stun round script that was made for me a while back. Not sure it still works though

Author:  Galacticruler [ Sat Aug 15, 2015 3:59 am ]
Post subject:  Re: High Explosive ammo from scratch

SnowMonster20 wrote:
You can do this through ini. Just make your round an AEMitter and have it gib the explosion. A low impulse limit will make it more likely to explode on impact.

EDIT: if you want the round to stun enemies then there is a few mods you can look into for stun rounds. I also have an old stun round script that was made for me a while back. Not sure it still works though

By consussive blast I mean more on the lines of the MaximDudeCorp Compressed Air bomb.

Author:  p3lb0x [ Sat Aug 15, 2015 2:18 pm ]
Post subject:  Re: High Explosive ammo from scratch

I am not entirely sure what that is. Do you want it to blow nearby physical objects away from it?

Author:  SnowMonster20 [ Sat Aug 15, 2015 8:50 pm ]
Post subject:  Re: High Explosive ammo from scratch

p3lb0x wrote:
I am not entirely sure what that is. Do you want it to blow nearby physical objects away from it?


If that was the case you should still be able to do it in ini. just add air burst (or whatever CC calls them now) to your gibbed explosion

EDIT: Or if you are looking to make something similar to another mod then look at the source code to learn from it. Or hell, do what most the rest of us do and just copy it. I know i've used others code before. Just try to get permission and give credit.



Here is an HE ini code I use. If you want it to knock people around then add more of the Air Blasts. This references Base.rte so it should work on its own. There may be a variable or two you have to change though. For a bigger explosion, up the particle counts and lifetimes. Vise verse for a smaller one. Also note that the Air Blasts have a chance to hurt and outright kill actors. They also dislodge weapons from hands.

Hope this helps!

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