]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Give bots a weapon on map reset
[xonotic/xonotic-data.pk3dir.git] / 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;