From 1ae35a14fd6be55747bef3ee62ca1a5c429d2b6e Mon Sep 17 00:00:00 2001 From: INeedBots Date: Thu, 14 Jan 2021 09:53:19 -0600 Subject: [PATCH] Fix --- userraw/maps/mp/bots/_bot_script.gsc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/userraw/maps/mp/bots/_bot_script.gsc b/userraw/maps/mp/bots/_bot_script.gsc index 9d73025..5bc2c5f 100644 --- a/userraw/maps/mp/bots/_bot_script.gsc +++ b/userraw/maps/mp/bots/_bot_script.gsc @@ -574,17 +574,20 @@ chooseRandomAttachmentComboForGun(gun) allowOp = (getDvarInt("bots_loadout_allow_op") >= 1); reasonable = getDvarInt("bots_loadout_reasonable"); + if (RandomFloatRange(0, 1) >= ((rank / level.maxRank) + 0.1)) + { + retAtts = []; + retAtts[0] = "none"; + retAtts[1] = "none"; + + return retAtts; + } + while (true) { att1 = random(atts); att2 = random(atts); - if (RandomFloatRange(0, 1) >= ((rank / level.maxRank) + 0.1)) - { - att1 = "none"; - att2 = "none"; - } - if (!isValidAttachmentCombo(att1, att2)) continue;