Help with nav mesh and doors.

Potada

L1: Registered
Jan 28, 2016
38
10
So, I'm currently working on a ctf map. The way it's set up, there are some faster side routes you can use to get to the intel, but once you grab said intel, most of that side locks down via the doors.

The problem is, I can't seem to get the bots to realize they're hitting a "locked" door once they close. I tried putting some "nav_transient" meshes in the doorway floors. but it didn't help.

Any ideas?
 

The Letter Before A

Cool Idiot
Jul 15, 2016
292
196
Honestly bots are stupid as hell
I would recommend uploading the map to an imp
When you hit rc, feel free to mess with the nav mesh.
I know there is a way to edit nav meshes but im not sure how you do it
 

FortyTwo

L2: Junior Member
Mar 5, 2016
85
71
tf_point_nav_interface is what it called to refresh the nav. So when the door is open or closed, or when the intel is picked up, send a output to the tf_point_nav_interface with a target input RecomputeBlockers. It refresh the whole nav in the map, seeing whenever if it blocked or not


EDIT: also, you can take a look at this link (https://developer.valvesoftware.com/wiki/Navigation_Meshes) to find out how to edit the meshes.

You might want to make one of the mesh to only specificly in each of the doors. Here some command that you might want to use it when editing the meshes:
nav_edit (0 or 1): lets you able to edit the nav meshes
nav_split: splits the mesh that your currently looking at now
nav_save: temporary saves the edited nav.
nav_analyse: use it for the very last part, it takes about a minute
 
Last edited: