1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-07-04 10:01:49 +00:00

Compare commits

4 Commits

Author SHA1 Message Date
1ca1cab3de fix this logic error 2025-01-23 23:44:24 -06:00
78435888b8 wait for notifies 2024-10-22 10:04:52 -06:00
d76bff04a6 Merge branch 'master' of https://github.com/ineedbots/piw5_bot_warfare 2024-09-21 20:25:50 -06:00
02ffc62730 import old camp changes 2024-09-21 20:25:47 -06:00
3 changed files with 15 additions and 8 deletions

View File

@ -945,10 +945,10 @@ connected()
level.bots[ level.bots.size ] = self;
self thread onDisconnect();
level notify( "bot_connected", self );
self thread watchBotDebugEvent();
waittillframeend; // wait for waittills to process
level notify( "bot_connected", self );
}
/*

View File

@ -2455,7 +2455,7 @@ bot_think_camp_loop()
self SetScriptGoal( campSpot.origin, 16 );
time = randomintrange( 10, 20 );
time = randomintrange( 30, 90 );
self BotNotifyBotEvent( "camp", "go", campSpot, time );
@ -2514,7 +2514,17 @@ killCampAfterTime( time )
self endon( "disconnect" );
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 ClearScriptAimPos();

View File

@ -79,9 +79,6 @@ removeChildFixed( element )
}
self.children = temp;
element.index = undefined;
element.parent = undefined;
}
destroyElemFixed()