From 02ffc62730f90fc8a7556a92104e021ddfb711ad Mon Sep 17 00:00:00 2001 From: ineed bots Date: Sat, 21 Sep 2024 20:25:47 -0600 Subject: [PATCH] import old camp changes --- maps/mp/bots/_bot_script.gsc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/maps/mp/bots/_bot_script.gsc b/maps/mp/bots/_bot_script.gsc index 8257465..b2720d4 100644 --- a/maps/mp/bots/_bot_script.gsc +++ b/maps/mp/bots/_bot_script.gsc @@ -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();