more straight paths

This commit is contained in:
Your Name 2020-09-18 11:11:40 -06:00
parent ba2e2d280f
commit fc3c41abec
3 changed files with 20 additions and 2 deletions

2
.gitignore vendored
View File

@ -20,4 +20,6 @@
*.stat
logs/
demos/
images/
weapons/
missingasset.csv

View File

@ -2295,9 +2295,24 @@ doWalk(goal, dist, isScriptGoal)
//{
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.second_next_wp = -1;
if(current != 0)
if(current > 0)
self.bot.second_next_wp = self.bot.astar[current-1];
self notify("new_static_waypoint");
@ -2513,7 +2528,7 @@ knife(ent, knifeDist)
}
if(isSubStr(curWeap, "tactical_") || usedRiot)
wait 0.75;
wait 1;
else
wait 1.5;

View File

@ -2154,6 +2154,7 @@ botGiveLoadout( team, class, allowCopycat )
self maps\mp\perks\_perks::cac_selector();
self notify ( "changed_kit" );
self notify( "bot_giveLoadout", allowCopycat );
}
botGetPerkUpgrade( perkName )