Page 1 of 2
Missiles
Posted: Mon May 12, 2014 1:36 pm
by pisang
Hi. New BA player and loving it.
I am looking to do a modern day mod and I absolutely need to figure out how to do missile attacks.
I have been exploring the scripts and I have looked into the engine documentation.
Can anyone point me in the right direction on where to look? I am fairly experienced in programming, I just need a kickstarter for BA.
Many thanks.
Re: Missiles
Posted: Mon May 12, 2014 2:03 pm
by Amaris
Well I guess the most easily way is to add a new 'action' for the missile attack. As you don't have to modify the scripts HE/AP firing.
You can found the documentation here:
http://www.slitherinebravo.net/GameWiki ... _functions
You can also look the scripts for the HE/AP firing and the indirect fire to understand how the damage is set on BA.
Good luck!

Re: Missiles
Posted: Mon May 12, 2014 2:39 pm
by pisang
Hi Amaris. Thanks. Saw your mod awhile back. Wickedly cool stuff! You are the man
Sorry for not being very specific on my question! I think I can follow the logic in adding UI functionalities and damage setup. My problem is more on the graphical representation.
How do you represent the "missile" itself. Is it actually a unit (i.e., an entry in squads.csv) that is "created" upon firing, inherits the attack information of the firing unit and is "destroyed" upon contact with the intended target?
I think I saw a youtube video of yours showing torpedo attack IIRC, that is what is stumping me. Appreciate some help

Re: Missiles
Posted: Mon May 12, 2014 3:24 pm
by pipfromslitherine
It's not really something that the engine is set up for. You cannot (in script) easily create free-moving objects. The best you could probably do is to create a 'taking off' and 'hitting target' anims for missiles and play one on the firing unit and the other on the target.
That said, perhaps Amaris' torpedo attack is far cleverer than the engine
Cheers
Pip
Re: Missiles
Posted: Mon May 12, 2014 4:57 pm
by Navaronegun
I concur with Pip. Animation is your best bet for a missile attack. Otherwise we are merely talking about AP, HE and Range values. The time scale of the engine, regardless of what unit scales you bathtub to, are in minutes, not seconds, so having a missile in flight isn't necessary. It should launch and hit the target in the same turn.
Re: Missiles
Posted: Mon May 12, 2014 11:43 pm
by pisang
pipfromslitherine wrote:It's not really something that the engine is set up for. ....
Aha. I thought so. I found nothing in the existing scripts / documentation to support it, which makes Amaris torpedo attack thingy even the more amazing.
Navaronegun wrote:Animation is your best bet for a missile attack...
Yes, this seems to be the quick work-around.
Thanks yall.
Re: Missiles
Posted: Tue May 13, 2014 7:32 am
by Amaris
pisang wrote:Hi Amaris. Thanks. Saw your mod awhile back. Wickedly cool stuff! You are the man
Sorry for not being very specific on my question! I think I can follow the logic in adding UI functionalities and damage setup. My problem is more on the graphical representation.
How do you represent the "missile" itself. Is it actually a unit (i.e., an entry in squads.csv) that is "created" upon firing, inherits the attack information of the firing unit and is "destroyed" upon contact with the intended target?
I think I saw a youtube video of yours showing torpedo attack IIRC, that is what is stumping me. Appreciate some help

Well you need to make a specific animation for the missile attack for all units allowed to fire a missile. Ie either modify existing 3D models or create new ones with a specific animation for this. This is what I did for the torpedo.

Re: Missiles
Posted: Tue May 13, 2014 8:44 am
by Amaris
A very primitive and quickly test for the launch of a missile:
I love my M3 Scout Car 'TOW missile'

Re: Missiles
Posted: Tue May 13, 2014 9:12 am
by pisang
Amaris wrote:A very primitive and quickly test for the launch of a missile ...
How did you do that? Surely custom effects ? Or is it canned animation?
Re: Missiles
Posted: Tue May 13, 2014 10:20 am
by Amaris
pisang wrote:Amaris wrote:A very primitive and quickly test for the launch of a missile ...
How did you do that? Surely custom effects ? Or is it canned animation?
I make a new animation for the missile and a special action to be able to launch it (which trigger the specific animation.) I used an already existent effect for the flame of the missile.
But this way have some issue: if the direction is correct, the flight distance of the missile is fixed into Gmax ; so if the target is too far or too close, the animation will be incorrect...
Re: Missiles
Posted: Tue May 13, 2014 12:46 pm
by pisang
Merci beaucoup Amaris!
Very clever. I suppose a min-max can be set on the firing range so that the animation / effect looks just right.
Re: Missiles
Posted: Tue May 13, 2014 12:50 pm
by Navaronegun
pisang wrote:Merci beaucoup Amaris!
Very clever. I suppose a min-max can be set on the firing range so that the animation / effect looks just right.
What era are you trying to simulate, pisang?
Re: Missiles
Posted: Tue May 13, 2014 12:57 pm
by pisang
@Navaronegun
Modern. Circa 80s to present. Have been looking around for a long time for an engine to mod and BA just hits the spot for me.
Re: Missiles
Posted: Tue May 13, 2014 12:59 pm
by Amaris
pisang wrote:Merci beaucoup Amaris!
Very clever. I suppose a min-max can be set on the firing range so that the animation / effect looks just right.
Well I'm not sure that's possible... The best solution is to create a new effect 'missile' with the particle effect editor(*) as the '"tracer flashes'...
(*): the particle effect editor isn't available ; you must ask nicely to Slitherine's guys. And it's not friendly UI!

Re: Missiles
Posted: Tue May 13, 2014 1:02 pm
by Navaronegun
Well, in a standard Fulda Gap era scenario using wire guided and "next gen" AT weapons (TOW, SAGGER, DRAGON, etc.) most had a minimum range of at least 50m, so you should be good with 1 hex (IIRC....been a while).
Nav
Re: Missiles
Posted: Tue May 13, 2014 1:04 pm
by pisang
Amaris wrote: particle effect editor isn't available ; you must ask nicely to Slitherine's guys ...
Thanks for the heads up, I need to get on the Slitherine guys good side eventually then I guess

Re: Missiles
Posted: Tue May 13, 2014 1:08 pm
by pisang
Navaronegun wrote:Well, in a standard Fulda Gap era scenario using wire guided and "next gen" AT weapons (TOW, SAGGER, DRAGON, etc.) most had a minimum range of at least 50m, so you should be good with 1 hex (IIRC....been a while).
Nav
Thanks. Will keep that in mind.

Re: Missiles
Posted: Tue May 13, 2014 3:39 pm
by morge4
Amaris wrote:A very primitive and quickly test for the launch of a missile:
I love my M3 Scout Car 'TOW missile'

WOW! Love it!you have a great gift for this Amaris!
Re: Missiles
Posted: Wed May 14, 2014 4:49 am
by pisang
I believe pip has just given me my missiles.
http://www.slitherinebravo.net/GameWiki ... ing_ui_hot
Thanks pip, and thanks again to amaris for the insights

Re: Missiles
Posted: Sat May 17, 2014 6:39 pm
by jcb989
That M3 - TOW car needs to show up in Tunis