bot: some tweaks for zombie mode (ref #664)

This commit is contained in:
jeefo 2025-02-17 15:03:38 +03:00
commit d965d7677f
No known key found for this signature in database
GPG key ID: D696786B81B667C8
6 changed files with 45 additions and 5 deletions

View file

@ -1243,7 +1243,9 @@ void Bot::fireWeapons () {
}
// use knife if near and good difficulty (l33t dude!)
if (cv_stab_close_enemies && m_difficulty >= Difficulty::Normal
if (!game.is (GameFlags::ZombieMod)
&& cv_stab_close_enemies
&& m_difficulty >= Difficulty::Normal
&& m_healthValue > 80.0f
&& !game.isNullEntity (m_enemy)
&& distance < 100.0f