Ansible2 / Arma-3-Survival

GNU General Public License v2.0
21 stars 16 forks source link

fn_setSkill.sqf #601

Closed Backwasch closed 2 years ago

Backwasch commented 2 years ago

Line: 26 private _skillLevel = BLWK_maxSkill min (BLWK_baseSkill (BLWK_skillIncriment BLWK_currentWaveNumber));

I think the multiplication between "BLWK_baseSkill" and "(BLWK_skillIncriment * BLWK_currentWaveNumber)" is wrong. It should be an addition.

-> private _skillLevel = BLWK_maxSkill min (BLWK_baseSkill + (BLWK_skillIncriment * BLWK_currentWaveNumber));

Because if i.e. BLWK_baseSkill = 0.02 BLWK_skillIncriment = 0.005 BLWK_currentWaveNumber = 1

The result would be 0.001 and not 0.205 (which would be the correct number) This bug results in the AI having a skill level close to 0.

I hope it is clear what I mean by this, I am not good at explaining stuff ^^