Abstract class choice

This commit is contained in:
ineedbots 2021-06-14 13:22:12 -06:00
parent e3a65e892c
commit a568042934
2 changed files with 18 additions and 2 deletions

View File

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

View File

@ -489,6 +489,22 @@ waittill_either(not, not1)
self waittill(not1);
}
/*
iw5
*/
allowClassChoice()
{
return true;
}
/*
iw5
*/
allowTeamChoice()
{
return true;
}
/*
Taken from iw4 script
*/