Improve asw_buzzer AI#946
Merged
Merged
Conversation
- Changed buzzer to sense marines using a sphere instead of using player's camera frustum. This allows to wake up buzzers that for some reason flew above player's camera frustum. Before this change many buzzers could get into infinite sleep while being relatively close to marines. - Increased the range buzzer can detect marines and wake up to 1024 units. Before this buzzers would easily loose marines out of their sight and get into forever sleep state. - Improved the "Spread then hibernate" order (although it still works not perfectly). Now buzzers instead of instantly sleeping move to some random position nearby the spawner and wait for player to see them. - Improved "Move to Nearest Marine" order. Now buzzer similary to other aliens updates nearest marine position periodically and moves to that position. Before this change buzzer would move to a position where marine was when the order would issued, and if marine was not in that position buzzer would enter sleep state. - Improved other orders: "Move to", "Move to Ignoring Marines". "Move to Ignoring Marines" still needs work as buzzers after arival do not retarget to marines (they still ignore them). Moved code of functions MarineCanSee() and MarineNearby() into asw_inhabitable_npc to reduce code duplication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moved code of functions MarineCanSee() and MarineNearby() into asw_inhabitable_npc to reduce code duplication.