How to make bots that follow a specific path?

Cookie^

L2: Junior Member
Jan 26, 2014
75
2
I was wondering how to make a path which bots can follow. I do not want the bots to shoot, just follow the path kind of like in tr_walkway the bots walk in a straight line. Also, should I use the bots with the "bot" command or the bots with the "tf_bot_add" command for this?
Thanks a lot! :D
 

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
func_nav_prerequisite might help. Its the mvm method to order them to walk to a specific area. Im not sure if it works for normal games though, but since its still bots i wouldnt be surprised if it actualy did. And they wont walk a straight line but instead walk based on the nav file then.

However, they will shoot using this method so you might want to actualy use a method to prevent that from happening aswel.
 

Cookie^

L2: Junior Member
Jan 26, 2014
75
2
func_nav_prerequisite might help. Its the mvm method to order them to walk to a specific area. Im not sure if it works for normal games though, but since its still bots i wouldnt be surprised if it actualy did.

Alright, I am going to try that. Will be back with the results. :)
 

Cookie^

L2: Junior Member
Jan 26, 2014
75
2
func_nav_prerequisite might help. Its the mvm method to order them to walk to a specific area. Im not sure if it works for normal games though, but since its still bots i wouldnt be surprised if it actualy did. And they wont walk a straight line but instead walk based on the nav file then.

However, they will shoot using this method so you might want to actualy use a method to prevent that from happening aswel.

I don't really understand how to use it, couldn't find any tutorials on it, too.
Also, how do I make it so that the bots don't shoot?
 

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
Its not the best guide and aimed for mvm but it should explain the prerequisite a bit: http://forums.tf2maps.net/showthread.php?t=22184
Its a quite recently used entity and currently only exists in mannhattan (or other control point based mvm maps - if there are any).

However, most important is to have 1 prerequisite that covers the spawn area of the bots and 1 info_target for the destination to walk to. The prerequisite can set the objective for the bots which in this case should be walking to the target.

However, i dont know how to prevent them shooting.
 

Cookie^

L2: Junior Member
Jan 26, 2014
75
2
Its not the best guide and aimed for mvm but it should explain the prerequisite a bit: http://forums.tf2maps.net/showthread.php?t=22184
Its a quite recently used entity and currently only exists in mannhattan (or other control point based mvm maps - if there are any).

However, most important is to have 1 prerequisite that covers the spawn area of the bots and 1 info_target for the destination to walk to. The prerequisite can set the objective for the bots which in this case should be walking to the target.

However, i dont know how to prevent them shooting.

I tried what you said, it does not seem to work.
I just place a nodraw brush with func_nav_prerequisite on the bot's spawn and I created an info_target entity. Then I set it's task to "Move To Entity" and I set the Task Entity to the info_target. Using the "bot" command just creates a bot that doesn't move and using the "tf_bot_add" command spawns a bot that attacks me.
 

Cookie^

L2: Junior Member
Jan 26, 2014
75
2
I just opened up tr_walkway on Hammer and it looks like trigger_push is used for the bots to move. Very interesting.
 

Freyja

aa
Jul 31, 2009
2,994
5,813
tr_walkway bots are just "bots". They're dumb. Don't require a nav. The path they follow is just a trigger_push, if they're on the ground it makes it look like they're walking.