From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 21 Jun 2023 23:59:32 +0000 (+0200) Subject: Revert "Revert "Give bots a weapon on map reset"" X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b42f72ae1e7d947efe7c55953b433f3df3ecc720;p=xonotic%2Fxonotic-data.pk3dir.git Revert "Revert "Give bots a weapon on map reset"" This reverts commit 92a6f315a69e9901c9e8a72c8768d284c55577b2. --- 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;