X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fhavocbot%2Frole_onslaught.qc;h=bc84340287ff8938e5e3b60d80d9073f41443095;hb=0a5f730751cf4a7f6ce555ef920fe9fdcd8e59ac;hp=3268daefa5a5ae601056dc02a1b6d6142ee3662f;hpb=40f917c4756590535181c3a6ee401d0eb1592ca9;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/havocbot/role_onslaught.qc b/qcsrc/server/bot/havocbot/role_onslaught.qc index 3268daefa..bc8434028 100644 --- a/qcsrc/server/bot/havocbot/role_onslaught.qc +++ b/qcsrc/server/bot/havocbot/role_onslaught.qc @@ -35,7 +35,7 @@ void havocbot_goalrating_ons_offenseitems(float ratingscale, vector org, float s needarmor = TRUE; // Needs weapons? - for(i = WEP_FIRST; i < WEP_LAST ; ++i) + for(i = WEP_FIRST; i <= WEP_LAST ; ++i) { // Find weapon if(power2of(i-1) & self.weapons) @@ -319,7 +319,7 @@ void havocbot_role_ons_offense() havocbot_goalrating_ons_offenseitems(10000, self.origin, 10000); navigation_goalrating_end(); - self.bot_strategytime = time + cvar("bot_ai_strategyinterval"); + self.bot_strategytime = time + autocvar_bot_ai_strategyinterval; } };