mirror of
https://github.com/ENSL/NS.git
synced 2025-02-12 15:05:58 +00:00
Update AvHAIWeaponHelper.cpp
This commit is contained in:
parent
dfcd4463ac
commit
e322e52619
1 changed files with 5 additions and 0 deletions
|
@ -549,6 +549,11 @@ AvHAIWeapon BotMarineChooseBestWeapon(AvHAIPlayer* pBot, edict_t* target)
|
||||||
|
|
||||||
if (FNullEnt(target))
|
if (FNullEnt(target))
|
||||||
{
|
{
|
||||||
|
if (IsPlayerReloading(pBot->Player))
|
||||||
|
{
|
||||||
|
return GetPlayerCurrentWeapon(pBot->Player);
|
||||||
|
}
|
||||||
|
|
||||||
if (UTIL_GetPlayerPrimaryWeaponClipAmmo(pBot->Player) > 0 || UTIL_GetPlayerPrimaryAmmoReserve(pBot->Player) > 0)
|
if (UTIL_GetPlayerPrimaryWeaponClipAmmo(pBot->Player) > 0 || UTIL_GetPlayerPrimaryAmmoReserve(pBot->Player) > 0)
|
||||||
{
|
{
|
||||||
return UTIL_GetPlayerPrimaryWeapon(pBot->Player);
|
return UTIL_GetPlayerPrimaryWeapon(pBot->Player);
|
||||||
|
|
Loading…
Reference in a new issue