Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the rest of the autoscaled attributes #4929

Merged

Conversation

Goober5000
Copy link
Contributor

PR #4516 did not cover all of the autoscaled AI class attributes, since a few of them were labeled differently. This adds checks to grab the correct autoscale index for the remaining cases:

$Afterburner Use Factor:
$Shockwave Evade Chances Per Second:
$Get Away Chance:
$Secondary Range Multiplier:

Fortunately, Sushi's investigation was pretty thorough. Between these remaining cases and @EatThePath's autoscaling review, this PR should cover the complete set of autoscaling situations.

Fixes #4922.

PR scp-fs2open#4516 did not cover all of the autoscaled AI class attributes, since a few of them were labeled differently.  This adds checks to grab the correct autoscale index for the remaining cases:

```
$Afterburner Use Factor:
$Shockwave Evade Chances Per Second:
$Get Away Chance:
$Secondary Range Multiplier:
```

Fortunately, Sushi's investigation was pretty thorough.  Between these remaining cases and @EatThePath's autoscaling review, this PR should cover the complete set of autoscaling situations.

Fixes scp-fs2open#4922.
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. ai A feature or issue related to the AI algorithms labels Nov 23, 2022
@wookieejedi wookieejedi added this to the Release 22.4 milestone Nov 23, 2022
Copy link
Member

@wookieejedi wookieejedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent to finally have this properly fixed, and looks good!

@Goober5000 Goober5000 merged commit 027f109 into scp-fs2open:master Nov 27, 2022
@Goober5000 Goober5000 deleted the supplemental_autoscaling_fix branch November 27, 2022 19:37
@MoerasGrizzly
Copy link

Formidable! This seems to work pretty well now.
My test case has been SM1-01, and changing the herc waves to go through all five AI classes. They seem to scale as expected. Comparisons are always tricky with AI ofc, but they're now a lot more eager to do stuff like use their afterburners (where they weren't for the longest time in FSblue until we found out about this bug).

@Goober5000
Copy link
Contributor Author

Glad to hear that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai A feature or issue related to the AI algorithms fix A fix for bugs, not-a-bugs, and/or regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Following up 4516
3 participants