abstract class choice

This commit is contained in:
ineedbots 2021-06-14 13:17:44 -06:00
parent 546b43e70a
commit 748d869951
2 changed files with 557 additions and 541 deletions

View File

@ -94,7 +94,7 @@ classWatch()
for(;;) for(;;)
{ {
while(!isdefined(self.pers["team"]) || level.oldschool) while(!isdefined(self.pers["team"]) || !allowClassChoice())
wait .05; wait .05;
wait 0.5; wait 0.5;
@ -115,7 +115,7 @@ teamWatch()
for(;;) for(;;)
{ {
while(!isdefined(self.pers["team"])) while(!isdefined(self.pers["team"]) || !allowTeamChoice())
wait .05; wait .05;
wait 0.05; wait 0.05;

View File

@ -118,6 +118,22 @@ isBombCarrier()
return (isDefined(self.isBombCarrier) && self.isBombCarrier); return (isDefined(self.isBombCarrier) && self.isBombCarrier);
} }
/*
iw5
*/
allowClassChoice()
{
return true;
}
/*
iw5
*/
allowTeamChoice()
{
return true;
}
/* /*
Gets the bot's difficulty number Gets the bot's difficulty number
*/ */