mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-03-16 07:56:56 +00:00
Sync with iw5 changes
This commit is contained in:
parent
b4bade0106
commit
fe4e761c64
@ -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;
|
||||
}
|
||||
|
||||
|
@ -447,6 +447,22 @@ getValidTube()
|
||||
return undefined;
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowClassChoice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowTeamChoice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
helper
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user