From b42f72ae1e7d947efe7c55953b433f3df3ecc720 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 22 Jun 2023 01:59:32 +0200 Subject: [PATCH] Revert "Revert "Give bots a weapon on map reset"" This reverts commit 92a6f315a69e9901c9e8a72c8768d284c55577b2. --- qcsrc/server/bot/default/bot.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 3b9f8691d..a42b0609a 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -107,6 +107,9 @@ void bot_think(entity this) if (time < game_starttime) { + .entity weaponentity = weaponentities[0]; + if(this.(weaponentity).m_weapon == WEP_Null) + W_NextWeapon(this, 0, weaponentity); // block the bot during the countdown to game start CS(this).movement = '0 0 0'; this.bot_nextthink = game_starttime; -- 2.39.2