mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-23 01:35:43 +00:00
abstract class choice
This commit is contained in:
parent
546b43e70a
commit
748d869951
@ -94,7 +94,7 @@ classWatch()
|
||||
|
||||
for(;;)
|
||||
{
|
||||
while(!isdefined(self.pers["team"]) || level.oldschool)
|
||||
while(!isdefined(self.pers["team"]) || !allowClassChoice())
|
||||
wait .05;
|
||||
|
||||
wait 0.5;
|
||||
@ -115,7 +115,7 @@ teamWatch()
|
||||
|
||||
for(;;)
|
||||
{
|
||||
while(!isdefined(self.pers["team"]))
|
||||
while(!isdefined(self.pers["team"]) || !allowTeamChoice())
|
||||
wait .05;
|
||||
|
||||
wait 0.05;
|
||||
|
@ -118,6 +118,22 @@ isBombCarrier()
|
||||
return (isDefined(self.isBombCarrier) && self.isBombCarrier);
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowClassChoice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowTeamChoice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
Gets the bot's difficulty number
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user