mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-22 16:05:44 +00:00
c4 support
This commit is contained in:
parent
979d1135be
commit
cf40501f60
@ -1397,6 +1397,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
|
||||
*/
|
||||
@ -2142,6 +2159,8 @@ bot_use_equipment_think()
|
||||
{
|
||||
if (nade != "satchel_charge_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