mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-22 16:05:44 +00:00
fix scr_error
This commit is contained in:
parent
edc183c7e2
commit
e7e13bffc0
@ -1029,6 +1029,9 @@ bot_inc_bots(obj, unreach)
|
|||||||
level endon("game_ended");
|
level endon("game_ended");
|
||||||
self endon("bot_inc_bots");
|
self endon("bot_inc_bots");
|
||||||
|
|
||||||
|
if (!isDefined(obj))
|
||||||
|
return;
|
||||||
|
|
||||||
if (!isDefined(obj.bots))
|
if (!isDefined(obj.bots))
|
||||||
obj.bots = 0;
|
obj.bots = 0;
|
||||||
|
|
||||||
@ -2357,6 +2360,8 @@ bot_revenge_think()
|
|||||||
if(!isDefined(self.killerLocation))
|
if(!isDefined(self.killerLocation))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
loc = self.killerLocation;
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
wait( RandomIntRange( 1, 5 ) );
|
wait( RandomIntRange( 1, 5 ) );
|
||||||
@ -2367,7 +2372,7 @@ bot_revenge_think()
|
|||||||
if ( randomint( 100 ) < 75 )
|
if ( randomint( 100 ) < 75 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
self SetScriptGoal( self.killerLocation, 64 );
|
self SetScriptGoal( loc, 64 );
|
||||||
|
|
||||||
if (self waittill_any_return( "goal", "bad_path", "new_goal" ) != "new_goal")
|
if (self waittill_any_return( "goal", "bad_path", "new_goal" ) != "new_goal")
|
||||||
self ClearScriptGoal();
|
self ClearScriptGoal();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user