mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-12 15:34:51 +00:00
commit
ebfba23513
@ -2099,7 +2099,7 @@ bot_think_camp_loop()
|
|||||||
if ( ret != "goal" )
|
if ( ret != "goal" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
self thread killCampAfterTime( randomIntRange( 10, 20 ) );
|
self thread killCampAfterTime( randomIntRange( 30, 90 ) );
|
||||||
self CampAtSpot( campSpot.origin, campSpot.origin + AnglesToForward( campSpot.angles ) * 2048 );
|
self CampAtSpot( campSpot.origin, campSpot.origin + AnglesToForward( campSpot.angles ) * 2048 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2134,7 +2134,16 @@ killCampAfterTime( time )
|
|||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
self endon( "kill_camp_bot" );
|
self endon( "kill_camp_bot" );
|
||||||
|
|
||||||
wait time + 0.05;
|
timeleft = maps\mp\gametypes\_gamelogic::getTimeRemaining() / 1000;
|
||||||
|
while ( time > 0 && timeleft >= 60 )
|
||||||
|
{
|
||||||
|
wait 1;
|
||||||
|
timeleft = maps\mp\gametypes\_gamelogic::getTimeRemaining() / 1000;
|
||||||
|
time--;
|
||||||
|
}
|
||||||
|
|
||||||
|
wait 0.05;
|
||||||
|
|
||||||
self ClearScriptGoal();
|
self ClearScriptGoal();
|
||||||
self ClearScriptAimPos();
|
self ClearScriptAimPos();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user