X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fhavocbot%2Fhavocbot.qc;h=2ddeb639182a3664a1315a2a41aedf19dd742f38;hb=fd20a1f1eae2b2ba955ce9ddedc20cd151a6f362;hp=cff3fe21452ad42a9f1a931927dcbcc82e18670f;hpb=35528e99ccad9a20fbd6eed640a5bc1bda884acd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index cff3fe214..2ddeb6391 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -107,7 +107,7 @@ void havocbot_ai(entity this) if(this.weapons) { Weapon w = PS(this).m_weapon; - w.wr_aim(w); + w.wr_aim(w, this); if (autocvar_bot_nofire || IS_INDEPENDENT_PLAYER(this)) { PHYS_INPUT_BUTTON_ATCK(this) = false; @@ -993,7 +993,7 @@ float havocbot_chooseweapon_checkreload(entity this, int new_weapon) { bool other_weapon_available = false; FOREACH(Weapons, it != WEP_Null, LAMBDA( - if(it.wr_checkammo1(it) + it.wr_checkammo2(it)) + if(it.wr_checkammo1(it, this) + it.wr_checkammo2(it, this)) other_weapon_available = true; )); if(other_weapon_available)