Solarint / SAIN

Full EFT AI Replacement
57 stars 18 forks source link

Previously discussed changes to SAIN vision modifiers (Movement/Elevation) #126

Closed No3371 closed 1 month ago

No3371 commented 1 month ago

As previously discussed in DC on 5/11, adding global look configs for bot vision modifier from player movement and elevation, so players get to configure or toggle these kind of features between SAIN and That's Lit.

Instead of applying modifiers by sprinting or not, the modifier are smoothed out by player speed in a range of 0 to 5, as 5 is the actual observed max speed with Realism, which gives player higher sprinting speed.

In a separate commit, similar change is applied to vision distance modifier in SAINVision.cs, as the MovementContext.MaxSpeed does not seems to work as we could imagine. (It's 0.615 regardless any control and movement in my short test on Day Factory)

Vision modifier from elevation is smoothed out by vertical vision angle, too. This way, players on higher floors from afar are not equally buffed as players above of the bot.

Solarint commented 1 month ago

Looks good. Thanks!