Allow bots to use remote missile + ai_tank
- precache eventstring
This commit is contained in:
parent
d9d5887561
commit
26e6d06523
@ -73,6 +73,9 @@
|
|||||||
|
|
||||||
#namespace bot;
|
#namespace bot;
|
||||||
|
|
||||||
|
#precache( "eventstring", "mpl_killstreak_cruisemissile" );
|
||||||
|
#precache( "eventstring", "mpl_killstreak_raps" );
|
||||||
|
|
||||||
REGISTER_SYSTEM( "bot_mp", &__init__, undefined )
|
REGISTER_SYSTEM( "bot_mp", &__init__, undefined )
|
||||||
|
|
||||||
function __init__()
|
function __init__()
|
||||||
@ -595,8 +598,23 @@ function use_killstreak()
|
|||||||
case "killstreak_helicopter_player_gunner":
|
case "killstreak_helicopter_player_gunner":
|
||||||
case "killstreak_raps":
|
case "killstreak_raps":
|
||||||
case "killstreak_sentinel":
|
case "killstreak_sentinel":
|
||||||
|
{
|
||||||
self SwitchToWeapon( useWeapon );
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user