BA2 is Killing easely than BA1?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

BA2 is Killing easely than BA1?

Post by enric »

In my appreciation, BA2 AP fire kills more frequently than BA1, maybe is just an appreciation.

In FIRELOGIC_AP.BSF , in the BA1 the code:

// if maxDamage less than armour leave chancetoKill at default 0

if (maxDamage > armour)
{
num = maxDamage - armour ;
num *= 100 ;
den = maxDamage - minDamage ;
chanceToKill = num / den ;
}

In BA2 the same part of the code has changed (deliberately or by mistake) and the IF has disappeared, so always is calculated, and chancetoKill is not left at default:

num = maxDamage - armour ;
num *= 100 ;
den = maxDamage - minDamage ;
chanceToKill = num / den ;

Could it be that?, and if deliberately changed why?
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: BA2 is Killing easely than BA1?

Post by pipfromslitherine »

I am going to assume this was deliberate to avoid too many instances where kills were impossible.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”