From: terencehill Date: Wed, 20 Apr 2022 13:53:46 +0000 (+0200) Subject: Give bots a weapon on map reset X-Git-Tag: xonotic-v0.8.5~60 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4f7fbf82a607dbab329b793c527f59229acfd113;p=xonotic%2Fxonotic-data.pk3dir.git Give bots a weapon on map reset --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 5577e8469..d9585768d 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -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;