From 4f7fbf82a607dbab329b793c527f59229acfd113 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 20 Apr 2022 15:53:46 +0200 Subject: [PATCH] Give bots a weapon on map reset --- qcsrc/server/bot/default/bot.qc | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2