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:
parent
b083e872e0
commit
6604145481
6 changed files with 53 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue