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

Makes NPC's seek out players again #700

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

Gboster-0
Copy link
Contributor

What this PR does

Moves one var check back to where it was, specifically for if the AI has an objective to attack currently

This fixes random elimination squads/enemies chilling until you attack them

Why it should be added to the game

In the same commit that burger made AI's run away at round end, they tried to make the code a bit neater by pushing back can_attack and objective_attack 1 proc backwards.
That in fact made every AI unable to find players, ever, as long as they were not attacked.

Copy link
Owner

@BurgerLUA BurgerLUA left a comment

Choose a reason for hiding this comment

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

hilarious and explains why during testing, AIs were not attacking me. I thought it was because I was running debug mode and they could not see me because there was no lighting subsystem running

@BurgerLUA BurgerLUA merged commit 2ae7913 into BurgerLUA:master Aug 29, 2024
3 checks passed
@Gboster-0 Gboster-0 deleted the gives-NPC's-eyes branch August 29, 2024 16:49
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