nav: do not avoid anyone in narrow places
nav: increase recent-probe repeat time bot: allow to camp with secondary weapon if enough friends alive bot: think runs now at minimum 50fps, instead of every frame on xash3d bot: make multilingual system work on xash3d (except menus right now) engine: mark xash3d engine as modern game version engine: add xash3d-specific cvars that are not registered on goldsrc cfg: do not spam on logs if multilingual or chatter configs not loaded because of game version
This commit is contained in:
parent
6b508b1775
commit
690d09a5d7
9 changed files with 39 additions and 22 deletions
|
|
@ -368,7 +368,7 @@ void Bot::doPlayerAvoidance (const Vector &normal) {
|
|||
m_hindrance = nullptr;
|
||||
float distance = cr::sqrf (348.0f);
|
||||
|
||||
if (getCurrentTaskId () == Task::Attack || isOnLadder ()) {
|
||||
if (getCurrentTaskId () == Task::Attack || isOnLadder () || isInNarrowPlace ()) {
|
||||
return;
|
||||
}
|
||||
const auto ownPrio = bots.getPlayerPriority (ent ());
|
||||
|
|
@ -477,7 +477,7 @@ void Bot::checkTerrain (float movedDistance, const Vector &dirNormal) {
|
|||
|
||||
// not stuck?
|
||||
if (!m_isStuck) {
|
||||
if (m_probeTime + rg.get (0.5f, 1.0f) < game.time ()) {
|
||||
if (m_probeTime + rg.get (0.75f, 1.15f) < game.time ()) {
|
||||
resetCollision (); // reset collision memory if not being stuck for 0.5 secs
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue