mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-22 16:05:44 +00:00
Some fix ups
This commit is contained in:
parent
d435111091
commit
fb6daae114
@ -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.
|
||||
*/
|
||||
|
@ -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))
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user