View unanswered posts | View active topics It is currently Thu Nov 28, 2024 11:10 am



Reply to topic  [ 5 posts ] 
 High Explosive ammo from scratch 
Author Message
User avatar

Joined: Sat Oct 15, 2011 4:19 pm
Posts: 322
Reply with quote
Post 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.


Fri Aug 14, 2015 6:07 pm
Profile
User avatar

Joined: Wed Jul 16, 2008 12:49 am
Posts: 226
Reply with quote
Post 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


Fri Aug 14, 2015 9:34 pm
Profile
User avatar

Joined: Sat Oct 15, 2011 4:19 pm
Posts: 322
Reply with quote
Post 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.


Sat Aug 15, 2015 3:59 am
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post 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?


Sat Aug 15, 2015 2:18 pm
Profile
User avatar

Joined: Wed Jul 16, 2008 12:49 am
Posts: 226
Reply with quote
Post 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!


Sat Aug 15, 2015 8:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.036s | 13 Queries | GZIP : Off ]