Page 1 of 1

Explosions chain?

Posted: Mon Jun 08, 2009 7:18 pm
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!

Re: Explosions chain?

Posted: Mon Jun 08, 2009 7:26 pm
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.

Re: Explosions chain?

Posted: Mon Jun 08, 2009 9:35 pm
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.

Re: Explosions chain?

Posted: Tue Jun 09, 2009 8:29 pm
by ForceMaster
Thanks men! you mean ussing this line in the explosion odf?

Code: Select all

DamageRadiusIner    =  "xx.x" 

Re: Explosions chain?

Posted: Tue Jun 09, 2009 9:02 pm
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

Re: Explosions chain?

Posted: Thu Jun 11, 2009 8:14 am
by ForceMaster
Thanks Eggman! I'll try it. :D