1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-07 08:47:41 +00:00

Use defaults if outdated _class

This commit is contained in:
ineedbots 2021-06-14 14:01:38 -06:00
parent 51ab0993d1
commit 428c426fb1

View File

@ -1559,6 +1559,18 @@ onGiveLoadout()
{
self waittill("giveLoadout", team, class, allowCopycat, setPrimarySpawnWeapon);
if (!isDefined(team))
team = self.team;
if (!isDefined(class))
class = self.class;
if (!isDefined(allowCopycat))
allowCopycat = false;
if (!isDefined(setPrimarySpawnWeapon))
setPrimarySpawnWeapon = true;
self botGiveLoadout(team, class, allowCopycat, setPrimarySpawnWeapon);
}
}