Some fix ups

This commit is contained in:
ineedbots 2021-05-26 12:56:06 -06:00
parent d435111091
commit fb6daae114
3 changed files with 38 additions and 0 deletions

View File

@ -328,6 +328,9 @@ watchGrenadeFire()
{
self waittill( "grenade_fire", nade, weapname );
if (!isDefined(nade))
continue;
if ( weapname == "satchel_charge_mp" )
self thread watchC4Thrown(nade);
}
@ -539,6 +542,10 @@ reload_watch()
break;
weap = self GetCurrentWeapon();
if (weap == "none")
break;
if (self GetWeaponAmmoClip(weap) >= WeaponClipSize(weap))
break;
}
@ -2113,6 +2120,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.
*/

View File

@ -3094,6 +3094,8 @@ bot_dom_spawn_kill_think()
{
if ( level.flags[i] maps\mp\gametypes\dom::getFlagTeam() == myTeam )
continue;
flag = level.flags[i];
}
if(!isDefined(flag))

View File

@ -84,6 +84,14 @@ BotPressADS(time)
self maps\mp\bots\_bot_internal::pressADS(time);
}
/*
Bot presses the use button for time.
*/
BotPressUse(time)
{
self maps\mp\bots\_bot_internal::use(time);
}
/*
Bot presses the frag button for time.
*/