Page 1 of 1

Bombardment & Airstrikes - Modding the impact

Posted: Mon Aug 20, 2012 4:40 pm
by GottaLove88s
Does anyone know where the script (or stats sheet) is that describes the different effects of the bombardment bonuses?

For example, how can I find out impact radius, the "number of bombs or shells", their approximate HE and AP effect, their (in)accuracy, the "invincibility" of the aircraft (ie. the difficulty of shooting it down with AA) for:

Hurricane
Typhoon
B17
Blenheim
He111
Me262

etc...

Re: Bombardment - Script or worksheet?

Posted: Sun Aug 26, 2012 9:13 am
by Richcat
Hi GL88's

This looks like it- in here

C:\Program Files\Slitherine\Battlefield Academy\Core\Cards

Re: Bombardment - Script or worksheet?

Posted: Sun Aug 26, 2012 10:01 am
by GottaLove88s
Richcat wrote:This looks like it - in here

C:\Program Files\Slitherine\Battlefield Academy\Core\Cards
Thanks Richcat! You're a genuis. Exactly what I wanted. :-)

So I'm guessing if I make any changes I want, in that cards.txt file, and place that in a folder called \cards, and then put that into \Multiplayer\MyScenario\Data that should work?

There's a lot in here that feels obvious... like the TyphoonDelay of 3 [turns], AAVulnerable of 50 [percent], etc.

But it seems to show two sets of conflicting values...

TyphoonHEAttack 60
TyphoonAPAttack 80
TyphoonSuppression 40

...and later...

TyphoonBombHEAttack 60
TyphoonBombAPAttack 80
TyphoonBombSuppression 80

I wonder which of the two it uses for its attack values? The plain Attack and Suppression? Or the BombAttack and BombSuppression? For the Typhoon, they're similar, but for other aircraft they're quite different...

Has anyone used these?

There's a lot of modding potential in this. Heck, you could even piggyback this code to create an A-bomb... and then run a post-nuclear scenario...

For illustration, full cards.txt for Typhoon is copied here:

TyphoonDelay 3
TyphoonHEAttack 60
TyphoonAPAttack 80
TyphoonIncomingSFX 84
TyphoonAAVulnerable 50
TyphoonImpactSFX 52
TyphoonImpactDelay 0
TyphoonTileDamage 0
TyphoonSuppression 40
TyphoonExplosionGFX 6
TyphoonFrontX 3
TyphoonLengthX 3
TyphoonSpreadY 0
TyphoonBombFrontX 3
TyphoonBombLengthX 3
TyphoonBombSpreadY 0
TyphoonBombSFX 8
TyphoonBombGFX 7
TyphoonBombHEAttack 60
TyphoonBombAPAttack 80
TyphoonBombSuppression 80
TyphoonBombTileDamage 70
TyphoonHitWait 1
TyphoonMarkerID -301
TyphoonBombEffect 1 // show the typhoon rocket effect

Re: Bombardment & Airstrikes - Modding the impact

Posted: Mon Aug 27, 2012 3:56 pm
by pipfromslitherine
You can check out the DATA/SCRIPTS/AIRSTRIKE.BSF and ARTILLERY.BSF files for details on how they use the various bonus values.

Cheers

Pip

Re: Bombardment & Airstrikes - Modding the impact

Posted: Mon Aug 27, 2012 4:53 pm
by GottaLove88s
Thanks Pip,

I may be misreading, but it looks like airstrikes always run an APAttack or HEAttack, depending on target type...

But then BA does a further check
// THIS ONLY WORKS IF THE BOMB VALUES ARE INSIDE THE MG VALUES
if( (i>bx) && (i<=bmaxx) )

And may, or may not, also run a BombHEAttack or BombAPAttack, again depending on target type...

Does that sound about right? It looks like Iain authored most of this, but it was picked up later by somebody else.
Now I wonder if there are multiple bonus buttons for airstrikes... one for precision targeting, and one for area bombing?

Will go back and check the Editor...

Re: Bombardment & Airstrikes - Modding the impact

Posted: Mon Aug 27, 2012 5:12 pm
by pipfromslitherine
Errrrr. Dunno :) Was a long time ago, and you are probably right that Iain started them off. So there might be some oddness about the scripts. They do indeed do an appropriate attack depending on the target on a given tile.

There are two different 'types' of attack - the close support (Stuka, Typhoon, etc) where you can shoot them down and they select and hit a close target, and the high altitude bombing attacks (B17, etc) which are more like shaped artillery strikes.

Cheers

Pip

Re: Bombardment & Airstrikes - Modding the impact

Posted: Mon Aug 27, 2012 5:24 pm
by GottaLove88s
Hehe, you're not that old Pip! ;-)

Yes, I'm sure you're right about the difference between the plain HEAttack or APAttack (which seems to be close support) and the HEBombAttack or APBombAttack (which feels like high altitude area bombing).

But some airstrikes have stats for both in cards.txt...
eg.
StukaHEAttack 70
StukaAPAttack 30
or
StukaBombHEAttack 100
StukaBombAPAttack 80

I just can't quite figure out what triggers whether BA runs the HEAttack or the BombHEAttack, or both...

One for Iain?

Re: Bombardment & Airstrikes - Modding the impact

Posted: Tue Apr 16, 2013 10:42 pm
by DocMogs
did this ever get figured out?

What is the difference between the HEattack and bombHEattack for the airstrikes?

Just airstrikes not artillery.