mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
Fixed cardtitles and emblems
This commit is contained in:
parent
d4a617a630
commit
c516225572
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user