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

Randomspawn #1013

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improved search for the best angle
  • Loading branch information
Vaqtincha committed Dec 10, 2024
commit e88432822ed484cadc28c3742b3fe85b91b825b4
2 changes: 1 addition & 1 deletion regamedll/dlls/bot/cs_bot_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ inline bool pointInRadius(Vector vecOrigin, float radius)
// a simple algorithm that searches for the farthest point (so that the player does not look at the wall)
inline Vector GetBestAngle(const Vector &vecStart)
{
const float ANGLE_STEP = 45.0f;
const float ANGLE_STEP = 30.0f;
float bestAngle = 0.0f;
float bestDistance = 0.0f;
Vector vecBestAngle = Vector(0, -1, 0);
Expand Down