nav: improve player avoidance once more
nav: try to repath our ways if stuck with other bot combat: a little improvement in knife usage control: enable/disable regame's round infinite when editing graph chatlib: replace say/say_team for older hlds to fix buffer overruns in gamelib Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
parent
d965d7677f
commit
30013702c7
10 changed files with 181 additions and 23 deletions
|
|
@ -1409,6 +1409,8 @@ void BotManager::handleDeath (edict_t *killer, edict_t *victim) {
|
|||
// mark bot as "spawned", and reset it to new-round state when it dead (for csdm/zombie only)
|
||||
if (victimBot != nullptr) {
|
||||
victimBot->spawned ();
|
||||
|
||||
victimBot->m_isAlive = false;
|
||||
}
|
||||
|
||||
// is this message about a bot who killed somebody?
|
||||
|
|
@ -1559,6 +1561,7 @@ void Bot::newRound () {
|
|||
m_forgetLastVictimTimer.invalidate ();
|
||||
m_lostReachableNodeTimer.invalidate ();
|
||||
m_fixFallTimer.invalidate ();
|
||||
m_repathTimer.invalidate ();
|
||||
|
||||
for (auto &timer : m_chatterTimes) {
|
||||
timer = kMaxChatterRepeatInterval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue