1
0
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:
ineedbots
2021-06-02 20:01:20 -06:00
parent 97dd49aa95
commit 1edaa8f11a
3 changed files with 209 additions and 34 deletions

View File

@ -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();