mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 02:15:42 +00:00
Abstract class choice
This commit is contained in:
parent
e3a65e892c
commit
a568042934
@ -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;
|
||||
|
@ -489,6 +489,22 @@ waittill_either(not, not1)
|
||||
self waittill(not1);
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowClassChoice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowTeamChoice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
Taken from iw4 script
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user