Skip to content

Conversation

@themuffinator
Copy link
Owner

Motivation

  • Restore the missing movement perception helper by implementing BotPredictVisiblePosition to match the Quake III flow.
  • Enable callers to obtain a reachable point that is visible from a goal for navigation/aiming decisions.
  • Reuse existing AAS reachability and trace utilities to compute visibility along movement paths.

Description

  • Implemented BotPredictVisiblePosition in src/botlib/ai_move/bot_move.c, which iteratively queries reachabilities with BotGetReachabilityToGoal and tests visibility against reach.start/reach.end.
  • Added a local line-of-sight helper BotMove_Visible that uses Q2_Trace with CONTENTS_SOLID|CONTENTS_PLAYERCLIP to test visibility.
  • Declared the new prototype in src/botlib/ai_move/bot_move.h and added the API entry to src/q2bridge/botlib.h.
  • Wired the function into the export table by adding BotInterface_BotPredictVisiblePosition and setting exportTable.BotPredictVisiblePosition in src/botlib/interface/bot_interface.c.

Testing

  • No automated tests were executed for this change.
  • The changes were committed locally with the message Implement BotPredictVisiblePosition.

Codex Task

@themuffinator themuffinator merged commit 0a156ae into main Dec 30, 2025
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants