Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve assault memory and engagement routines #306

Merged
merged 3 commits into from
Feb 2, 2022

Conversation

nk3nny
Copy link
Owner

@nk3nny nk3nny commented Dec 15, 2021

This pull request tunes AI close quarter battle ability and introduces small bug fixes. It does this by tuning behaviours and introducing a change in how groupMemory entries are handled by groups. See below.

brainEngage.sqf

  • Tweaks various brainEngage timings for increased aggression
  • Increased chance of suppressing enemyDetected (taking advantage of improved suppress AI added in previous releases)
  • Fix Units will only set "ACE_medical_ai_lastFired" when in CQB
  • Fix Units will no longer suppress quickly moving vehicles, such as aircraft

brainAssess.sqf

  • Removes many features from brainAssess which were necessary with the earllier slower brainEngage timings.
  • Slimmer and better performing.

doAssault.sqf

  • Better handling of stance in doAssault. (More standing means more reliable movement)
  • Increased building check distance to get more positions. From 5 to 7 meters.
  • Improved groupMemory*
  • Reintroduce slight randomness to indoor assault locations (prevents units getting stuck)

doAssaultMemory.sqf

  • Adds distance sorting to nearby positions
  • Adds 'break out' routine if threatened by known, nearby enemy.
  • Added stance change if nearest location is beyond 66M
  • changed from doLook to doWatch for better group focus.
  • Changed to Stance tweak and removed speed change to remove staccato movement.

Improved group Memory
*Building positions are now only added to groupMemory if the list is currently empty and the calling unit is fairly close (40 meters) to the building in question. This enhancement makes groups more reliable clear building by building-- and prevents the groupMemory from becoming endlessly growing.

The groupMemory feature now also has breakout patterns if the AI is threatened by nearby enemies. And finally it interacts very well with the tightened timings-- adding an aggressive and constantly searching AI.

This pull request tunes AI close quarter battle ability and introduces small bug fixes.  It does this by tuning behaviours and introducing a change in how groupMemory entries are handled by groups. See below.

brainEngage.sqf
Tweaks various brainEngage timings for increased aggression
Increased chance of suppressing enemyDetected (taking advantage of improved suppress AI added in previous releases)
Fix Units will only set "ACE_medical_ai_lastFired" when in CQB
Fix Units will no longer suppress quickly moving vehicles, such as aircraft

doAssault.sqf
- Better handling of stance in doAssault. (More standing means more reliable movement)
- Increased building check distance to get more positions. From 5 to 7 meters.
- Improved groupMemory*
- Reintroduce slight randomness to indoor assault locations (prevents units getting stuck)

*Building positions are now only added to groupMemory if the list is currently empty and the calling unit is fairly close (40 meters) to the building in question.

This enhancement makes groups more reliable clear building by building-- and prevents the groupMemory from becoming endlessly growing.

doAssaultMemory.sqf
- Adds distance sorting to nearby positions
- Adds 'break out' routine if threatened by known, nearby enemy.
- Added stance change if nearest location is beyond 66M
- changed from doLook to doWatch for better group focus.
- Changed to Stance tweak and removed speed change to remove staccato movement.
Adds simplified brainAssess with tuned timings
@nk3nny nk3nny added this to the 2.6.0 milestone Dec 16, 2021
Simplifies nearEnemy check
@nk3nny nk3nny merged commit 57abdb5 into master Feb 2, 2022
@nk3nny nk3nny deleted the Improve-assault-memory-and-engagement-routines branch February 2, 2022 18:14
@jokoho48 jokoho48 modified the milestones: 2.6.0, 2.5.4 Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants