Sync with iw5 changes

This commit is contained in:
ineedbots 2021-06-14 13:13:05 -06:00
parent b4bade0106
commit fe4e761c64
2 changed files with 19 additions and 3 deletions

View File

@ -1014,7 +1014,7 @@ classWatch()
for(;;)
{
while(!isdefined(self.pers["team"]))
while(!isdefined(self.pers["team"]) || !allowClassChoice())
wait .05;
wait 0.5;
@ -1078,7 +1078,7 @@ teamWatch()
for(;;)
{
while(!isdefined(self.pers["team"]))
while(!isdefined(self.pers["team"]) || !allowTeamChoice())
wait .05;
wait 0.05;
@ -2866,7 +2866,7 @@ bot_jav_loc_think_loop(data)
if (chance > 20)
chance = 20;
if (randomInt(100) > chance)
if (randomInt(100) > chance && self getCurrentWeapon() != "javelin_mp")
return;
}

View File

@ -447,6 +447,22 @@ getValidTube()
return undefined;
}
/*
iw5
*/
allowClassChoice()
{
return true;
}
/*
iw5
*/
allowTeamChoice()
{
return true;
}
/*
helper
*/