Allow bots to use remote missile + ai_tank

- precache eventstring
This commit is contained in:
WantedDV 2023-04-20 22:31:29 -02:30
parent d9d5887561
commit 26e6d06523

View File

@ -73,6 +73,9 @@
#namespace bot;
#precache( "eventstring", "mpl_killstreak_cruisemissile" );
#precache( "eventstring", "mpl_killstreak_raps" );
REGISTER_SYSTEM( "bot_mp", &__init__, undefined )
function __init__()
@ -595,8 +598,23 @@ function use_killstreak()
case "killstreak_helicopter_player_gunner":
case "killstreak_raps":
case "killstreak_sentinel":
{
self SwitchToWeapon( useWeapon );
break;
break;
}
case "killstreak_ai_tank_drop":
{
self use_supply_drop( weapon );
break;
}
case "killstreak_remote_missile":
{
self SwitchToWeapon( weapon );
self waittill( "weapon_change_complete" );
wait 1.5;
self bot::press_attack_button();
return;
}
}
}