From c516225572782622623b9693c84de88f4c2df08d Mon Sep 17 00:00:00 2001 From: ineedbots Date: Wed, 12 May 2021 19:36:25 -0600 Subject: [PATCH] Fixed cardtitles and emblems --- maps/mp/bots/_bot.gsc | 22 +--------------------- maps/mp/bots/_bot_script.gsc | 4 ++-- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/maps/mp/bots/_bot.gsc b/maps/mp/bots/_bot.gsc index add40cb..112a2b1 100644 --- a/maps/mp/bots/_bot.gsc +++ b/maps/mp/bots/_bot.gsc @@ -417,27 +417,7 @@ added() */ add_bot() { - //bot = addTestClient(); - setDvar("addBots", 1); - - wait 0.05; - - bot = undefined; - - players = GetEntArray( "player", "classname" ); - for (i = 0; i < players.size; i++) - { - player = players[i]; - - if (!player is_bot()) - continue; - - if (isDefined(self.pers["isBotWarfare"])) - continue; - - bot = player; - break; - } + bot = addTestClient(); if (isdefined(bot)) { diff --git a/maps/mp/bots/_bot_script.gsc b/maps/mp/bots/_bot_script.gsc index 8935def..8447dc0 100644 --- a/maps/mp/bots/_bot_script.gsc +++ b/maps/mp/bots/_bot_script.gsc @@ -171,7 +171,7 @@ getCardTitles() if (!isSubStr(card_name, "cardtitle_")) continue; - cards[cards.size] = card_name; + cards[cards.size] = i; } return cards; @@ -194,7 +194,7 @@ getCardIcons() if (!isSubStr(card_name, "cardicon_")) continue; - cards[cards.size] = card_name; + cards[cards.size] = i; } return cards;