mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
more straight paths
This commit is contained in:
parent
ba2e2d280f
commit
fc3c41abec
2
.gitignore
vendored
2
.gitignore
vendored
@ -20,4 +20,6 @@
|
|||||||
*.stat
|
*.stat
|
||||||
logs/
|
logs/
|
||||||
demos/
|
demos/
|
||||||
|
images/
|
||||||
|
weapons/
|
||||||
missingasset.csv
|
missingasset.csv
|
@ -2295,9 +2295,24 @@ doWalk(goal, dist, isScriptGoal)
|
|||||||
//{
|
//{
|
||||||
while(current >= 0)
|
while(current >= 0)
|
||||||
{
|
{
|
||||||
|
for (;;)
|
||||||
|
{
|
||||||
|
if (current <= 0)
|
||||||
|
break;
|
||||||
|
|
||||||
|
ppt = PlayerPhysicsTrace(self.origin + (0,0,32), level.waypoints[self.bot.astar[current-1]].origin, false, self);
|
||||||
|
if (DistanceSquared(level.waypoints[self.bot.astar[current-1]].origin, ppt) > 1.0)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (level.waypoints[self.bot.astar[current-1]].type == "climb" || level.waypoints[self.bot.astar[current]].type == "climb")
|
||||||
|
break;
|
||||||
|
|
||||||
|
current = self removeAStar();
|
||||||
|
}
|
||||||
|
|
||||||
self.bot.next_wp = self.bot.astar[current];
|
self.bot.next_wp = self.bot.astar[current];
|
||||||
self.bot.second_next_wp = -1;
|
self.bot.second_next_wp = -1;
|
||||||
if(current != 0)
|
if(current > 0)
|
||||||
self.bot.second_next_wp = self.bot.astar[current-1];
|
self.bot.second_next_wp = self.bot.astar[current-1];
|
||||||
|
|
||||||
self notify("new_static_waypoint");
|
self notify("new_static_waypoint");
|
||||||
@ -2513,7 +2528,7 @@ knife(ent, knifeDist)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isSubStr(curWeap, "tactical_") || usedRiot)
|
if(isSubStr(curWeap, "tactical_") || usedRiot)
|
||||||
wait 0.75;
|
wait 1;
|
||||||
else
|
else
|
||||||
wait 1.5;
|
wait 1.5;
|
||||||
|
|
||||||
|
@ -2154,6 +2154,7 @@ botGiveLoadout( team, class, allowCopycat )
|
|||||||
self maps\mp\perks\_perks::cac_selector();
|
self maps\mp\perks\_perks::cac_selector();
|
||||||
|
|
||||||
self notify ( "changed_kit" );
|
self notify ( "changed_kit" );
|
||||||
|
self notify( "bot_giveLoadout", allowCopycat );
|
||||||
}
|
}
|
||||||
|
|
||||||
botGetPerkUpgrade( perkName )
|
botGetPerkUpgrade( perkName )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user