Can a weapon explode mid air ie grenade?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Can a weapon explode mid air ie grenade?

Post by YaNkFaN »

Can a weapon explode in mid air or does it have to hit an object /terrain first. The only instance I can think of is the remote rocket after it's "energy" runs out but then again it doesn't really explode. So yea anyone have any insight on this issue?
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: can a weapon explode mid air ie grenade?

Post by Eggman »

Maybe you could set up it's .odf to be similar to that of the timebomb? From a quick check, some of the properties are different between grenades and mines/timebombs are different and they have different class labels, but if you changed some values like the MinStrength/MaxStrength, added a ShotElevate property, and gave it the grenade toss fire animation, you might be able to make a timebomb mimic a grenade that explodes mid-air.

I don't know if that would actually work, but it's all I can think of.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: can a weapon explode mid air ie grenade?

Post by YaNkFaN »

i did some searching in the forums and found this

StartTimerOnContact = "0"

i'll try it out and see if it works and get back to you
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Can a weapon explode mid air ie grenade?

Post by bobfinkl »

Yes that line works perfectly fine, the grenade explodes in the same time it would normally without the line on the floor.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Can a weapon explode mid air ie grenade?

Post by Maveritchell »

Any weapon that can "expire" midair (non-gravity-affected weapons) can explode midair since a property of an expiration is an explosion. I think shells can too, but I don't know offhand.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Can a weapon explode mid air ie grenade?

Post by kinetosimpetus »

Shells can. Yes.
Post Reply