Compare commits

...

2 Commits

Author SHA1 Message Date
ineed bots
d76bff04a6 Merge branch 'master' of https://github.com/ineedbots/piw5_bot_warfare 2024-09-21 20:25:50 -06:00
ineed bots
02ffc62730 import old camp changes 2024-09-21 20:25:47 -06:00

View File

@ -2455,7 +2455,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 );
@ -2514,7 +2514,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\_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();