Skip to content

Fix fighter/bomber AI remaining stationary if engines repaired#7609

Open
wookieejedi wants to merge 4 commits into
scp-fs2open:masterfrom
wookieejedi:small-ai-edge-case-fix
Open

Fix fighter/bomber AI remaining stationary if engines repaired#7609
wookieejedi wants to merge 4 commits into
scp-fs2open:masterfrom
wookieejedi:small-ai-edge-case-fix

Conversation

@wookieejedi

Copy link
Copy Markdown
Member

There is an FSO behavior that results in fighters/bombers just slowing down to 0 and remaining still--if their engines get temporarily disabled and then repaired and their current target dies/departs. This is b/c when the engines are blown they get set to AM_ATTACK_FOREVER mode, but if the target leaves they just end up remaining still. This becomes very obvious in mods where there is automatic subsystem repair.

Thus, add a flag to enable the AI to stop that forever mode.

@wookieejedi wookieejedi added fix A fix for bugs, not-a-bugs, and/or regressions. ai A feature or issue related to the AI algorithms labels Jul 15, 2026
@wookieejedi wookieejedi added this to the 26.0.1 milestone Jul 15, 2026
@wookieejedi wookieejedi added the Point Release Candidate An already merged bugfix that may be merged into a previous stable version label Jul 15, 2026

@JohnAFernandez JohnAFernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The change looks fine, but I'm not convinced it belongs on the point release candidate. Maybe discuss on internal?

@wookieejedi

Copy link
Copy Markdown
Member Author

I'm good with whatever folks decide

Comment thread code/ai/aicode.cpp Outdated
aip->submode_start_time = Missiontime;
}
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A bit of whitespace was added here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah good catch, just pushed a fix

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. Point Release Candidate An already merged bugfix that may be merged into a previous stable version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants