]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "Revert "Give bots a weapon on map reset""
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 21 Jun 2023 23:59:32 +0000 (01:59 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 21 Jun 2023 23:59:32 +0000 (01:59 +0200)
This reverts commit 92a6f315a69e9901c9e8a72c8768d284c55577b2.

qcsrc/server/bot/default/bot.qc

index 3b9f8691d17fc42486a0d416455444fddfe813f2..a42b0609a191ccf9e063de4d429807ccdbb2e59b 100644 (file)
@@ -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;