mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 10:15:44 +00:00
full c4 support
This commit is contained in:
parent
a84133d928
commit
36daf4ed6e
@ -1337,6 +1337,23 @@ fire_current_weapon()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Fires the bots c4
|
||||
*/
|
||||
fire_c4()
|
||||
{
|
||||
self endon("death");
|
||||
self endon("disconnect");
|
||||
self endon("weapon_change");
|
||||
self endon("stop_firing_weapon");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
self thread BotPressAds(0.05);
|
||||
wait 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Changes to the weap
|
||||
*/
|
||||
@ -1874,6 +1891,8 @@ bot_use_equipment_think()
|
||||
{
|
||||
if (nade != "c4_mp")
|
||||
self thread fire_current_weapon();
|
||||
else
|
||||
self thread fire_c4();
|
||||
self waittill_any_timeout(5, "grenade_fire", "weapon_change");
|
||||
self notify("stop_firing_weapon");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user