mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-27 14:51:49 +00:00
Fixed the isEnt scr error
This commit is contained in:
@ -726,7 +726,7 @@ chopperWatch()
|
||||
|
||||
chopper = level.chopper;
|
||||
|
||||
if (!isEntity(chopper))
|
||||
if (level.teamBased && getDvarInt("doubleHeli"))
|
||||
{
|
||||
chopper = level.chopper["allies"];
|
||||
if (!isDefined(chopper))
|
||||
|
@ -2144,7 +2144,7 @@ bot_killstreak_think()
|
||||
case "helicopter_mp":
|
||||
chopper = level.chopper;
|
||||
|
||||
if (isDefined(chopper) && !isEntity(chopper))
|
||||
if (isDefined(chopper) && level.teamBased && getDvarInt("doubleHeli"))
|
||||
chopper = level.chopper[self.team];
|
||||
|
||||
if (isDefined(chopper))
|
||||
@ -2306,7 +2306,7 @@ bot_target_vehicle()
|
||||
|
||||
chopper = level.chopper;
|
||||
|
||||
if(isDefined(chopper) && !isEntity(chopper))
|
||||
if(isDefined(chopper) && level.teamBased && getDvarInt("doubleHeli"))
|
||||
{
|
||||
chopper = level.chopper[ level.otherTeam[self.team] ];
|
||||
}
|
||||
|
Reference in New Issue
Block a user