mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 07:34:50 +00:00
Fixed altmode weapons
This commit is contained in:
parent
1f42c9014c
commit
41f6b974c6
@ -348,7 +348,7 @@ watchRadar()
|
|||||||
if (player _hasPerk("specialty_coldblooded"))
|
if (player _hasPerk("specialty_coldblooded"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (DistanceSquared(player.origin, scrambler.origin) > 256*256)
|
if (DistanceSquared(player.origin, grenade.origin) > 256*256)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
player.bot_isInRadar = true;
|
player.bot_isInRadar = true;
|
||||||
|
@ -2317,11 +2317,10 @@ prone()
|
|||||||
changeToWeap(weap)
|
changeToWeap(weap)
|
||||||
{
|
{
|
||||||
if (maps\mp\gametypes\_weapons::isAltModeWeapon(weap))
|
if (maps\mp\gametypes\_weapons::isAltModeWeapon(weap))
|
||||||
{
|
self botAction("+alt");
|
||||||
self botWeapon(weap);
|
else
|
||||||
self setSpawnWeapon(weap);
|
self botAction("-alt");
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
self botWeapon(weap);
|
self botWeapon(weap);
|
||||||
}
|
}
|
||||||
@ -2428,6 +2427,9 @@ botAction(act)
|
|||||||
|
|
||||||
level.bot_buttons["+goprone"] = 256;
|
level.bot_buttons["+goprone"] = 256;
|
||||||
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];
|
buttons = level.bot_buttons[act];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user