Skip to content

Improve asw_buzzer AI#946

Merged
BenLubar merged 1 commit into
reactivedrop_betafrom
buzzer-ai-improvement
Aug 23, 2025
Merged

Improve asw_buzzer AI#946
BenLubar merged 1 commit into
reactivedrop_betafrom
buzzer-ai-improvement

Conversation

@geotavros

Copy link
Copy Markdown
Contributor
  • 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.

- 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.
@BenLubar BenLubar merged commit 414f843 into reactivedrop_beta Aug 23, 2025
2 checks passed
@BenLubar BenLubar deleted the buzzer-ai-improvement branch August 23, 2025 21:17
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