]> git.xonotic.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>
Tue, 6 Jun 2023 18:28:49 +0000 (20:28 +0200)
This reverts commit c2858527e0fd55a4a9b033af062aa505ee26e0f2.

qcsrc/server/bot/default/bot.qc

index 79b3a96924754bf066ef762b7d602c03faa9ca8b..a42b0609a191ccf9e063de4d429807ccdbb2e59b 100644 (file)
@@ -68,12 +68,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;