mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 07:34:50 +00:00
Use defaults if outdated _class
This commit is contained in:
parent
51ab0993d1
commit
428c426fb1
@ -1559,6 +1559,18 @@ onGiveLoadout()
|
|||||||
{
|
{
|
||||||
self waittill("giveLoadout", team, class, allowCopycat, setPrimarySpawnWeapon);
|
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);
|
self botGiveLoadout(team, class, allowCopycat, setPrimarySpawnWeapon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user