mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-23 02:35:43 +00:00
Added use button
This commit is contained in:
parent
ab612e8ff6
commit
712f2c3a37
@ -241,6 +241,9 @@ watchGrenadeFire()
|
|||||||
{
|
{
|
||||||
self waittill( "grenade_fire", nade, weapname );
|
self waittill( "grenade_fire", nade, weapname );
|
||||||
|
|
||||||
|
if (!isDefined(nade))
|
||||||
|
continue;
|
||||||
|
|
||||||
if ( weapname == "c4_mp" )
|
if ( weapname == "c4_mp" )
|
||||||
self thread watchC4Thrown(nade);
|
self thread watchC4Thrown(nade);
|
||||||
}
|
}
|
||||||
@ -2005,6 +2008,27 @@ smoke(time)
|
|||||||
self.bot.issmokingafter = false;
|
self.bot.issmokingafter = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
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 fire if true or not.
|
Bot will fire if true or not.
|
||||||
*/
|
*/
|
||||||
|
@ -84,6 +84,14 @@ BotPressADS(time)
|
|||||||
self maps\mp\bots\_bot_internal::pressADS(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.
|
Bot presses the frag button for time.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user