official-antistasi-community / A3-Antistasi

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

Flatten out support responses and block support calls for mine kills #3386

Closed jaj22 closed 1 month ago

jaj22 commented 3 months ago

What type of PR is this.

  1. [X] Bug
  2. [ ] Change
  3. [ ] Enhancement
  4. [X] Balance

What have you changed and why?

  1. Prevented support responses purely for mine/IED kills. This hopefully won't change any other case. Suppressed sniping will also generate a knowsAbout value of 1.5, but if the sniper still has LoS this seems to increase slightly. With a suppressed MXM at 700m I saw values around 1.99 after the second shot.

  2. Flattened out the response ramp, so that maximum support responses at a location will only occur once the local troops are at serious risk of being eliminated.

Example for 40 friendly units, 10 equivalent enemy units (players are worth three AI units): Old: Minimum response at 10 kills, maximum response at 18 kills New: Minimum response at 12 kills, maximum response at 27 kills

Please specify which Issue this PR Resolves.

closes #3384 closes #3385

Please verify the following and ensure all checks are completed.

  1. [X] Have you loaded the mission in LAN host?
  2. [ ] Have you loaded the mission on a dedicated server?

Is further testing or are further changes required?

  1. [X] No
  2. [ ] Yes (Please provide further detail below.)

How can the changes be tested?

Make sure debug logging is enabled and watch the support calls and maxDefenceSpend logs.

jaj22 commented 2 months ago

Added an additional location spend cap which kicks in when only a small proportion of rebel players are attacking a location. This is fairly conservative: Using more than 25% of players on an outpost, or bringing any significant high command or vehicle support will likely revert to the standard location cap. Soloing an outpost on a 20-player server will still draw 26% of enemy resources.

The flag-capture response is unchanged at 60% of the location spend cap, partly for technical reasons, so if a small group managed to clear an outpost then they're relatively likely to get a flag-capture response.