c4 support

This commit is contained in:
ineedbots 2021-05-04 17:00:09 -06:00
parent 979d1135be
commit cf40501f60

View File

@ -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");
}