Explosions chain?

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
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Explosions chain?

Post by ForceMaster »

hello everybody! anyone know if it is possible to do this? mean an object explodes and unleashes an explosion followed by several different objects, something like a "domino effect"

via LUA or ODF? thanks!
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Explosions chain?

Post by Maveritchell »

Either one can be done - the .odf method is easiest, but it will make an almost instantaneous explosion for all of them. If you use lua (a series of timers and killobjects would be easiest), it will take some more work, but you may be able to produce a cinematically more satisfying result. It all depends on what you want to do.
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: Explosions chain?

Post by Eggman »

An example of the .odf method can be seen in my Aldura: Landfall map. There are several explosive barrels sitting around a turret. The barrels' explosion has a high damage value that destroys anything withing its damage radius - in this case, the turret. As Maveritchell said, the explosion of the turret is essentially instantaneous. This works well when you just need to destroy one or two objects at once, and it takes a matter of seconds to set up.

However, if you want a true domino effect with a small, yet noticeable time lapse between each explosion, you should use the .lua functions Mav described.
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Re: Explosions chain?

Post by ForceMaster »

Thanks men! you mean ussing this line in the explosion odf?

Code: Select all

DamageRadiusIner    =  "xx.x" 
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: Explosions chain?

Post by Eggman »

In the .odf you'll be looking for these lines:

Damage = "800.0" - base damage the explosion inflicts on units, objects, etc.
DamageRadiusInner = "4.5" - radius within which maximum damage is inflicted
DamageRadiusOuter = "6.5" - farthest distance damage will reach; damage inflicted gradually diminishes between RadiusInner and RadiusOuter
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Re: Explosions chain?

Post by ForceMaster »

Thanks Eggman! I'll try it. :D
Post Reply