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
|
|
@ -1493,7 +1493,12 @@ void Bot::newRound () {
|
|||
if (rg.chance (50)) {
|
||||
pushChatterMessage (Chatter::NewRound);
|
||||
}
|
||||
m_updateInterval = game.is (GameFlags::Legacy | GameFlags::Xash3D) ? 0.0f : (1.0f / cr::clamp (cv_think_fps.float_ (), 30.0f, 60.0f));
|
||||
auto interval = cr::clamp (cv_think_fps.float_ (), 24.0f, 90.0f);
|
||||
|
||||
if (game.is (GameFlags::Xash3D) && interval < 50.0f) {
|
||||
interval = 50.0f; // xash works acceptable at 50fps
|
||||
}
|
||||
m_updateInterval = game.is (GameFlags::Legacy) ? 0.0f : 1.0f / interval;
|
||||
}
|
||||
|
||||
void Bot::resetPathSearchType () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue