mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
attack flick
This commit is contained in:
parent
2b123797ea
commit
fb0147e3c2
@ -2150,9 +2150,6 @@ bot_uav_think()
|
|||||||
{
|
{
|
||||||
wait 0.75;
|
wait 0.75;
|
||||||
|
|
||||||
if ( self HasScriptGoal() || self.bot_lock_goal )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if(self.pers["bots"]["skill"]["base"] <= 1)
|
if(self.pers["bots"]["skill"]["base"] <= 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -2196,11 +2193,19 @@ bot_uav_think()
|
|||||||
|
|
||||||
if((!isSubStr(player getCurrentWeapon(), "_silencer_") && player.bots_firing) || (hasRadar && !player hasPerk("specialty_coldblooded")))
|
if((!isSubStr(player getCurrentWeapon(), "_silencer_") && player.bots_firing) || (hasRadar && !player hasPerk("specialty_coldblooded")))
|
||||||
{
|
{
|
||||||
// what about setAttacker for higher skilled bots
|
if (Distance(self.origin, player.origin) < self.pers["bots"]["skill"]["help_dist"] && bulletTracePassed(self getEye(), player getTagOrigin( "j_spineupper" ), false, player))
|
||||||
self SetScriptGoal( player.origin, 128 );
|
{
|
||||||
|
self SetAttacker(player);
|
||||||
|
}
|
||||||
|
|
||||||
if (self waittill_any_return( "goal", "bad_path", "new_goal" ) != "new_goal")
|
if (!self HasScriptGoal() && !self.bot_lock_goal)
|
||||||
self ClearScriptGoal();
|
{
|
||||||
|
self thread stop_go_target_on_death(player);
|
||||||
|
self SetScriptGoal( player.origin, 128 );
|
||||||
|
|
||||||
|
if (self waittill_any_return( "goal", "bad_path", "new_goal" ) != "new_goal")
|
||||||
|
self ClearScriptGoal();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user