From 97a7c0c23865bb2df8399c586a16f1a5b279c691 Mon Sep 17 00:00:00 2001 From: LightCat Date: Tue, 21 Aug 2018 20:32:35 +0200 Subject: [PATCH] Ammo <= 5 --- src/hacks/NavBot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hacks/NavBot.cpp b/src/hacks/NavBot.cpp index 8079f98f..39975ffe 100644 --- a/src/hacks/NavBot.cpp +++ b/src/hacks/NavBot.cpp @@ -66,9 +66,9 @@ bool HasLowAmmo() { IClientEntity *weapon = g_IEntityList->GetClientEntity(eid); if (weapon and - re::C_BaseCombatWeapon::IsBaseCombatWeapon(weapon) and - re::C_TFWeaponBase::UsesPrimaryAmmo(weapon) and - not re::C_TFWeaponBase::HasPrimaryAmmo(weapon)) + re::C_BaseCombatWeapon::IsBaseCombatWeapon(weapon) && + re::C_TFWeaponBase::UsesPrimaryAmmo(weapon) && + (!re::C_TFWeaponBase::HasPrimaryAmmo(weapon) || NET_INT(weapon, netvar.m_iAmmo + 4) <= 5)) return true; } }