AI skills are giving back incorrect values with skillFinal.
Description
Description
Details
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- AI Skill / Difficulty
Steps To Reproduce
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
Comment Actions
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.