This PR reimplements the ability for Neuro to move around when inside of a vent, as requested in #74.
When Neuro enters a vent, the plugin will take over, and begin cycling through vents with a random delay between each one. After moving to a new vent, it will check if there are any non-impostors in view. If there are, it will move on and try the next vent. If it is deemed safe to exit, then it will exit the vent and the network will take over again.
The original post suggested that we could use pathfinding on top of a vision check for other players, but I felt that was a little cheaty since it would allow us to see players outside of our view, while a human player cannot. We could pathfind check for players just outside of view in case they walk out of view and immediately turn around but I don't know if that's worth it as it just seems that would be an unlucky part of normal gameplay.
This PR reimplements the ability for Neuro to move around when inside of a vent, as requested in #74.
When Neuro enters a vent, the plugin will take over, and begin cycling through vents with a random delay between each one. After moving to a new vent, it will check if there are any non-impostors in view. If there are, it will move on and try the next vent. If it is deemed safe to exit, then it will exit the vent and the network will take over again.
The original post suggested that we could use pathfinding on top of a vision check for other players, but I felt that was a little cheaty since it would allow us to see players outside of our view, while a human player cannot. We could pathfind check for players just outside of view in case they walk out of view and immediately turn around but I don't know if that's worth it as it just seems that would be an unlucky part of normal gameplay.