Fixed altmode weapons

This commit is contained in:
ineedbots 2021-05-17 16:47:14 -06:00
parent 1f42c9014c
commit 41f6b974c6
2 changed files with 8 additions and 6 deletions

View File

@ -348,7 +348,7 @@ watchRadar()
if (player _hasPerk("specialty_coldblooded"))
continue;
if (DistanceSquared(player.origin, scrambler.origin) > 256*256)
if (DistanceSquared(player.origin, grenade.origin) > 256*256)
continue;
player.bot_isInRadar = true;

View File

@ -2317,11 +2317,10 @@ prone()
changeToWeap(weap)
{
if (maps\mp\gametypes\_weapons::isAltModeWeapon(weap))
{
self botWeapon(weap);
self setSpawnWeapon(weap);
return;
}
self botAction("+alt");
else
self botAction("-alt");
self botWeapon(weap);
}
@ -2428,6 +2427,9 @@ botAction(act)
level.bot_buttons["+goprone"] = 256;
level.bot_buttons["-goprone"] = 256;
level.bot_buttons["+alt"] = 4194304;
level.bot_buttons["-alt"] = 4194304;
}
buttons = level.bot_buttons[act];