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);
}
}