mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-21 21:45:43 +00:00
Fix
This commit is contained in:
parent
33fb299c27
commit
1ae35a14fd
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user