]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "Campaign: give bots a weapon on map start"
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 5 Jun 2023 19:47:15 +0000 (21:47 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 5 Jun 2023 19:48:12 +0000 (21:48 +0200)
This reverts commit c2858527e0fd55a4a9b033af062aa505ee26e0f2.

qcsrc/server/bot/default/bot.qc

index 2a663a10dc7e02b377704e7540ab6e730e32d526..99bbd44ee029226d3f03aa84f0974233001eeb19 100644 (file)
@@ -73,12 +73,6 @@ 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;