mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
Fixed altmode weapons
This commit is contained in:
parent
1f42c9014c
commit
41f6b974c6
@ -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;
|
||||
|
@ -2317,12 +2317,11 @@ 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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user