mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-06-28 23:21:51 +00:00
Bots use tank and uav drone
This commit is contained in:
@ -1541,6 +1541,7 @@ onDeath()
|
||||
self waittill("death");
|
||||
|
||||
self.wantSafeSpawn = true;
|
||||
self ClearScriptGoal();
|
||||
}
|
||||
}
|
||||
|
||||
@ -4230,6 +4231,9 @@ bot_target_vehicle_loop()
|
||||
|
||||
if (target.model != "vehicle_ugv_talon_mp" && target.model != "vehicle_remote_uav")
|
||||
{
|
||||
if (isDefined(self.remoteTank))
|
||||
return;
|
||||
|
||||
if(!isDefined(rocketAmmo) && self BotGetRandom() < 90)
|
||||
return;
|
||||
}
|
||||
@ -4258,7 +4262,7 @@ bot_target_vehicle()
|
||||
if(self HasScriptEnemy())
|
||||
continue;
|
||||
|
||||
if (self IsUsingRemote())
|
||||
if (self IsUsingRemote() && !isDefined(self.remoteTank))
|
||||
continue;
|
||||
|
||||
self bot_target_vehicle_loop();
|
||||
|
Reference in New Issue
Block a user