From 8a15a9d3625e293326a8ed3c77449d654d2dd7f4 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 22 Jun 2023 01:59:33 +0200 Subject: [PATCH] Revert "Revert "Campaign: give bots a weapon on map start"" This reverts commit 0121566a6e21d8cad4438da85c344a86c21e57b8. --- qcsrc/server/bot/default/bot.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index a42b0609a..79b3a9692 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -68,6 +68,12 @@ void bot_think(entity this) if (!IS_PLAYER(this) || (autocvar_g_campaign && !campaign_bots_may_start)) { + if (IS_PLAYER(this)) + { + .entity weaponentity = weaponentities[0]; + if(this.(weaponentity).m_weapon == WEP_Null) + W_NextWeapon(this, 0, weaponentity); + } CS(this).movement = '0 0 0'; this.bot_nextthink = time + 0.5; return; -- 2.39.2