From: terencehill Date: Thu, 14 Apr 2022 13:04:53 +0000 (+0200) Subject: Campaign: give bots a weapon on map start X-Git-Tag: xonotic-v0.8.5~73 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2858527e0fd55a4a9b033af062aa505ee26e0f2;p=xonotic%2Fxonotic-data.pk3dir.git Campaign: give bots a weapon on map start --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 79f939196..509adfdbe 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -67,6 +67,12 @@ void bot_think(entity this) if (!IS_PLAYER(this) || (autocvar_g_campaign && !campaign_bots_may_start)) { + if (IS_PLAYER(this)) + { + .entity weaponentity = weaponentities[0]; + if(this.(weaponentity).m_weapon == WEP_Null) + W_NextWeapon(this, 0, weaponentity); + } CS(this).movement = '0 0 0'; this.bot_nextthink = time + 0.5; return;