]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Give bots a weapon on map reset
authorterencehill <piuntn@gmail.com>
Wed, 20 Apr 2022 13:53:46 +0000 (15:53 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 20 Apr 2022 13:53:46 +0000 (15:53 +0200)
qcsrc/server/bot/default/bot.qc

index 5577e8469d82fdb8dda2c3b967034814802b96b5..d9585768d9fc2f7a606582d4566f67e642d119ce 100644 (file)
@@ -113,6 +113,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;