mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-21 01:55:43 +00:00
import camping change
This commit is contained in:
parent
271ef3387d
commit
2e3ec92b07
@ -1572,7 +1572,7 @@ bot_think_camp_loop()
|
|||||||
|
|
||||||
self SetScriptGoal( campSpot.origin, 16 );
|
self SetScriptGoal( campSpot.origin, 16 );
|
||||||
|
|
||||||
time = randomintrange( 10, 20 );
|
time = randomintrange( 30, 90 );
|
||||||
|
|
||||||
self BotNotifyBotEvent( "camp", "go", campSpot, time );
|
self BotNotifyBotEvent( "camp", "go", campSpot, time );
|
||||||
|
|
||||||
@ -1631,7 +1631,17 @@ 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\_globallogic::gettimeremaining() / 1000;
|
||||||
|
|
||||||
|
while ( time > 0 && timeleft >= 60 )
|
||||||
|
{
|
||||||
|
wait 1;
|
||||||
|
timeleft = maps\mp\gametypes\_globallogic::gettimeremaining() / 1000;
|
||||||
|
time--;
|
||||||
|
}
|
||||||
|
|
||||||
|
wait 0.05;
|
||||||
|
|
||||||
self ClearScriptGoal();
|
self ClearScriptGoal();
|
||||||
self ClearScriptAimPos();
|
self ClearScriptAimPos();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user