mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-12-02 08:47:46 +00:00
all_or_nothings bots fix
Fixed the infinite loop when using giveLoadout on a bot preventing us from giving a throwing knife and the scavenger specialist bonus on bots
This commit is contained in:
@@ -110,10 +110,19 @@ ReplaceKillstreaks()
|
||||
self.pers["gamemodeLoadout"]["loadoutKillstreak2"] = "none";
|
||||
self.pers["gamemodeLoadout"]["loadoutKillstreak3"] = "none";
|
||||
|
||||
if (!isDefined(self.pers["isBot"]) || !self.pers["isBot"])
|
||||
if (self IsBot())
|
||||
{
|
||||
self maps\mp\bots\_bot_utility::botGiveLoadout(self.team, "gamemode", false, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
self maps\mp\gametypes\_class::giveLoadout(self.team, "gamemode", false, true);
|
||||
}
|
||||
|
||||
maps\mp\killstreaks\_killstreaks::clearKillstreaks();
|
||||
}
|
||||
|
||||
IsBot()
|
||||
{
|
||||
return IsDefined(self.pers["isBot"]) && self.pers["isBot"];
|
||||
}
|
||||
Reference in New Issue
Block a user