Page MenuHomeFeedback Tracker

AI skill values return incorrect results when checked with skillFinal
New, NormalPublic

Description

AI skills are giving back incorrect values with skillFinal.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
AI Skill / Difficulty
Steps To Reproduce

https://imgur.com/a/DhjNr

Review screenshots, placed unit, set to 100% skill on sliders.
Screenshot of cfgAiSkill so you can see this is 100% vanilla and not messed with
Set difficulty to custom and set 1 for both precisionAI and skillAI

From debug console cursorObject setskill ["aimingAccuracy",0.5]
Review skillFinal using cursorTarget skillfinal "aimingAccuracy"

Value comes out at 0.75 which would indicate a modifier of 1.5 somewhere...

Event Timeline

Cyruz created this task.Sep 24 2017, 1:24 PM
Cyruz updated the task description. (Show Details)Sep 24 2017, 2:03 PM
oukej added a subscriber: oukej.Nov 9 2017, 9:45 PM

Actually that is correct. Skill final has been added for debug reasons.
What happens is that the raw skill gets adjusted by the difficulty (for AI level 1.0 that is in 0.5-1.0 range) and only then gets interpolated according to the cfgAiSkill range. And then you get the skillFinal which is then used in AI calculations.