mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-05-16 15:04:50 +00:00
Bots use airdrops
This commit is contained in:
parent
39aa881f2c
commit
b55c2acb6a
@ -1666,7 +1666,7 @@ start_bot_threads()
|
|||||||
// obj
|
// obj
|
||||||
if (getDvarInt("bots_play_obj"))
|
if (getDvarInt("bots_play_obj"))
|
||||||
{
|
{
|
||||||
/*self thread bot_dom_def_think();
|
self thread bot_dom_def_think();
|
||||||
self thread bot_dom_spawn_kill_think();
|
self thread bot_dom_spawn_kill_think();
|
||||||
|
|
||||||
self thread bot_hq();
|
self thread bot_hq();
|
||||||
@ -1680,14 +1680,7 @@ start_bot_threads()
|
|||||||
|
|
||||||
self thread bot_dem_attackers();
|
self thread bot_dem_attackers();
|
||||||
self thread bot_dem_defenders();
|
self thread bot_dem_defenders();
|
||||||
|
|
||||||
self thread bot_gtnw();
|
|
||||||
self thread bot_oneflag();
|
|
||||||
self thread bot_arena();
|
|
||||||
self thread bot_vip();*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self thread bot_think_revive();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -4316,12 +4309,18 @@ bot_killstreak_think()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (streakName == "airdrop_mega" || streakName == "airdrop_sentry_minigun" || streakName == "airdrop")
|
if (streakName == "escort_airdrop" || streakName == "airdrop_juggernaut_recon" || streakName == "airdrop_trap" || streakName == "airdrop_juggernaut" || streakName == "airdrop_remote_tank" || streakName == "airdrop_sentry_minigun" || streakName == "airdrop_assault")
|
||||||
{
|
{
|
||||||
if (self HasScriptAimPos() || true)
|
if (self HasScriptAimPos())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (streakName != "airdrop_mega" && level.littleBirds > 2)
|
if( ( level.littleBirds.size >= 4 || level.fauxVehicleCount >= 4 ) && !isSubStr( toLower( streakName ), "juggernaut" ) )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if( currentActiveVehicleCount() >= maxVehiclesAllowed() || level.fauxVehicleCount + 1 >= maxVehiclesAllowed() )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if( IsSubStr( toLower( streakName ), "escort_airdrop" ) && isDefined( level.chopper ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(!bulletTracePassed(self.origin, self.origin+(0,0,2048), false, self) && self.pers["bots"]["skill"]["base"] > 3)
|
if(!bulletTracePassed(self.origin, self.origin+(0,0,2048), false, self) && self.pers["bots"]["skill"]["base"] > 3)
|
||||||
|
@ -57,6 +57,7 @@ init()
|
|||||||
|
|
||||||
level.waypoints = [];
|
level.waypoints = [];
|
||||||
level.waypointCount = 0;
|
level.waypointCount = 0;
|
||||||
|
level.bots_lowmem = false;
|
||||||
|
|
||||||
level waittill( "connected", player);
|
level waittill( "connected", player);
|
||||||
player thread onPlayerSpawned();
|
player thread onPlayerSpawned();
|
||||||
@ -135,6 +136,9 @@ watchAstarCommand()
|
|||||||
{
|
{
|
||||||
self waittill("astar");
|
self waittill("astar");
|
||||||
|
|
||||||
|
if (1)
|
||||||
|
continue;
|
||||||
|
|
||||||
self iprintln("Start AStar");
|
self iprintln("Start AStar");
|
||||||
self.astar = undefined;
|
self.astar = undefined;
|
||||||
astar = spawnStruct();
|
astar = spawnStruct();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user