mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-06-28 23:21:51 +00:00
More bot enable stuff
This commit is contained in:
@ -2230,6 +2230,27 @@ pressADS(time)
|
||||
self botAction("-ads");
|
||||
}
|
||||
|
||||
/*
|
||||
Bot will press use for a time.
|
||||
*/
|
||||
use(time)
|
||||
{
|
||||
self endon("death");
|
||||
self endon("disconnect");
|
||||
self notify("bot_use");
|
||||
self endon("bot_use");
|
||||
|
||||
if(!isDefined(time))
|
||||
time = 0.05;
|
||||
|
||||
self botAction("+use");
|
||||
|
||||
if(time)
|
||||
wait time;
|
||||
|
||||
self botAction("-use");
|
||||
}
|
||||
|
||||
/*
|
||||
Bot will jump.
|
||||
*/
|
||||
@ -2297,7 +2318,7 @@ changeToWeap(weap)
|
||||
{
|
||||
if (maps\mp\gametypes\_weapons::isAltModeWeapon(weap))
|
||||
{
|
||||
self botWeapon("");
|
||||
self botWeapon(weap);
|
||||
self setSpawnWeapon(weap);
|
||||
return;
|
||||
}
|
||||
@ -2375,6 +2396,9 @@ botAction(act)
|
||||
level.bot_buttons["+ads"] = (524288) | (2048);
|
||||
level.bot_buttons["-ads"] = (524288) | (2048);
|
||||
|
||||
level.bot_buttons["+use"] = 8;
|
||||
level.bot_buttons["-use"] = 8;
|
||||
|
||||
level.bot_buttons["+fire"] = 1;
|
||||
level.bot_buttons["-fire"] = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user