Skip to content

Fix soldiers looking at enemies when they don't see them#323

Merged
1upD merged 1 commit intoentropy-zero:ez2/mapbasefrom
Blixibon:ez2/feature/soldier-tactical-look-target-change
Jan 28, 2025
Merged

Fix soldiers looking at enemies when they don't see them#323
1upD merged 1 commit intoentropy-zero:ez2/mapbasefrom
Blixibon:ez2/feature/soldier-tactical-look-target-change

Conversation

@Blixibon
Copy link
Collaborator

This PR fixes Combine soldiers looking at enemies when their AI doesn't see them. Instead of checking for the combat state and then sending a visibility trace, the code now simply checks the "see enemy" condition and then whether the enemy would be a valid head target. As part of this, the code for "looking at self" instead has been changed to simply look ahead, as looking at self did not always work as intended.

@Blixibon Blixibon requested a review from 1upD January 26, 2025 19:34
Copy link

@1upD 1upD left a comment

Choose a reason for hiding this comment

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

LGTM

@1upD 1upD merged commit a0dccd4 into entropy-zero:ez2/mapbase Jan 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants