official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
226 stars 156 forks source link

[Game balance]: Modify helicopter probabilities in fn_DES_Heli.sqf #3270

Open ante185 opened 3 months ago

ante185 commented 3 months ago

What is wrong with the balance currently?

Currently each helicopter in a template has an equal chance of spawning in the crashed helicopter mission, this means that if there's 5 transport helicopters and 1 attack helicopter the chance of getting a transport is 1/6th - it's entirely dependent on what the faction looks like. This is because the code pulls all helicopters into one array and then just selects a random element.

Describe the solution you'd like.

We need some scheme that allows for more direct control over the probability of each helicopter class, more weights and levers to adjust them couldn't be bad.

Alternative solutions

No response

Additional context

No response

jaj22 commented 3 months ago

There's similar functionality in getVehiclesGroundXXX and getVehiclesAirSupport. You probably don't need the war level tables but ideally you do adjust for missing attack or lightAttack.