mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-23 00:15:44 +00:00
import camp changes from iw4
This commit is contained in:
parent
8038a30557
commit
0ab94bfea7
@ -1729,7 +1729,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 );
|
||||||
|
|
||||||
@ -1788,7 +1788,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