bot: only stop for reloading in normal task
This commit is contained in:
parent
000a941139
commit
e9b181f438
1 changed files with 1 additions and 1 deletions
|
|
@ -1599,7 +1599,7 @@ void Bot::overrideConditions () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// special handling for reloading
|
// special handling for reloading
|
||||||
if (m_reloadState != Reload::None && m_isReloading && !isInNarrowPlace ()) {
|
if (getCurrentTaskId () == Task::Normal && m_reloadState != Reload::None && m_isReloading && !isInNarrowPlace ()) {
|
||||||
if (m_seeEnemyTime + 2.5f < game.time () && (m_states & (Sense::SuspectEnemy | Sense::HearingEnemy))) {
|
if (m_seeEnemyTime + 2.5f < game.time () && (m_states & (Sense::SuspectEnemy | Sense::HearingEnemy))) {
|
||||||
m_moveSpeed = m_fearLevel > m_agressionLevel ? 0.0f : getShiftSpeed ();
|
m_moveSpeed = m_fearLevel > m_agressionLevel ? 0.0f : getShiftSpeed ();
|
||||||
m_navTimeset = game.time ();
|
m_navTimeset = game.time ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue