From: mand1nga Date: Sun, 21 Aug 2011 01:42:09 +0000 (-0300) Subject: CTF roles that need immediate actions should refresh their goals immediately X-Git-Tag: xonotic-v0.5.0~112 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fb193291028239662de1b785d9fd908d15e675b2;p=xonotic%2Fxonotic-data.pk3dir.git CTF roles that need immediate actions should refresh their goals immediately --- diff --git a/qcsrc/server/bot/havocbot/role_ctf.qc b/qcsrc/server/bot/havocbot/role_ctf.qc index 7fbdbc0a3..f85f2ef64 100644 --- a/qcsrc/server/bot/havocbot/role_ctf.qc +++ b/qcsrc/server/bot/havocbot/role_ctf.qc @@ -204,6 +204,7 @@ void havocbot_role_ctf_setrole(entity bot, float role) bot.havocbot_role = havocbot_role_ctf_carrier; bot.havocbot_role_timeout = 0; bot.havocbot_cantfindflag = time + 10; + bot.bot_strategytime = 0; break; case HAVOCBOT_CTF_ROLE_DEFENSE: dprint("defense"); @@ -225,12 +226,14 @@ void havocbot_role_ctf_setrole(entity bot, float role) bot.havocbot_previous_role = bot.havocbot_role; bot.havocbot_role = havocbot_role_ctf_retriever; bot.havocbot_role_timeout = time + 10; + bot.bot_strategytime = 0; break; case HAVOCBOT_CTF_ROLE_ESCORT: dprint("escort"); bot.havocbot_previous_role = bot.havocbot_role; bot.havocbot_role = havocbot_role_ctf_escort; bot.havocbot_role_timeout = time + 30; + bot.bot_strategytime = 0; break; } dprint("\n");