fix: hide chatter icon even for players that changed team

fix: mark bot as finished buying on csdm spawn (ref #734)
fix: do not start any map analysis if already analyzing (ref #726)
combat: improved head/body aiming (ref #734)
This commit is contained in:
jeefo 2025-09-10 15:32:40 +03:00
commit 6604145481
No known key found for this signature in database
GPG key ID: D696786B81B667C8
6 changed files with 53 additions and 19 deletions

View file

@ -648,14 +648,19 @@ void Bot::camp_ () {
auto pathLength = m_lastPredictLength;
auto predictNode = m_lastPredictIndex;
if (isNodeValidForPredict (predictNode) && pathLength > 1) {
if (isNodeValidForPredict (predictNode)
&& pathLength > 1
&& vistab.visible (predictNode, m_currentNodeIndex)) {
m_lookAtSafe = graph[predictNode].origin + pev->view_ofs;
}
else {
pathLength = 0;
predictNode = findAimingNode (m_lastEnemyOrigin, pathLength);
if (isNodeValidForPredict (predictNode) && pathLength > 1) {
if (isNodeValidForPredict (predictNode) && pathLength > 1
&& vistab.visible ( predictNode, m_currentNodeIndex)) {
m_lookAtSafe = graph[predictNode].origin + pev->view_ofs;
}
}