76
Brutal AI / Re: [Suggestion] Please Clairfy BOXCE Advanced Option 'shot dispersion'
« on: February 16, 2024, 01:51:15 am »
I started looking at the code on github and found that '0' "Realistic" is more accurate & has a tighter grouping. Until I actually looked at the code, I didn't know if 'Realistic" or "Normal" was more accurate.
Normal
accuracyDivider; // Default - Unchanged
distanceDivider = 3;
Realistic:
if (Options::battleRealisticShotDispersion == 0) {
++accuracyDivider;
distanceDivider = 5;
}
int accuracy_deviation = (accuracy_check - real_accuracy) / accuracyDivider;
int distance_deviation = distanceTiles / distanceDivider; // 1 voxel of deviation per X tiles of distance
I looked around the code a bit and found that the value for battleRealisticShotDispersion is used in a few locations, it might easier to leave the logic untouched and just change the text in the advanced config menu.
Here's my recommendation for clarification. Update the text in the advanced options menu to something like the following, otherwise I wouldn't have a clue what either option is doing.
"0> Realistic, higher accuracy, tighter shot dispersion grouping 1> Normal, closer to original OXC logic, lower accuracy and wider shot dispersion."
Normal
accuracyDivider; // Default - Unchanged
distanceDivider = 3;
Realistic:
if (Options::battleRealisticShotDispersion == 0) {
++accuracyDivider;
distanceDivider = 5;
}
int accuracy_deviation = (accuracy_check - real_accuracy) / accuracyDivider;
int distance_deviation = distanceTiles / distanceDivider; // 1 voxel of deviation per X tiles of distance
I looked around the code a bit and found that the value for battleRealisticShotDispersion is used in a few locations, it might easier to leave the logic untouched and just change the text in the advanced config menu.
Here's my recommendation for clarification. Update the text in the advanced options menu to something like the following, otherwise I wouldn't have a clue what either option is doing.
"0> Realistic, higher accuracy, tighter shot dispersion grouping 1> Normal, closer to original OXC logic, lower accuracy and wider shot dispersion."