Closed Alexejhero closed 1 year ago
I think the current implementation for the moving around the vents is fine, the code as it stands already checks for nearby players before attempting to exit the vent, so we can tinker with that check radius as we see fit (should probably be based off the game setting view radius to make things fair).
You'll have to jog my memory, but does the network already decide if it wants to vent or not? I do know the Vent flag exists in NNOutput, so if it can decide to vent then we would just need to allow Neuro to actually "click" the vent button when she decides to, and then the existing moving around the vents implementation should handle the rest fine.
I can definitely clean up the code and fix the condition for deciding to vent if it is network based, as currently it'll just attempt to enter any vent it finds for testing purposes.
Closed in #75
How do we want to handle venting?
One idea could be: Whenever a vent is entered, cycle through vents until we find one without nearby players (using pathfinding as well as vision, to ensure they're not just around the corner) and then vent out.
I'm interested to hear other implementation ideas if there are any, keeping in mind that we aren't using the neural network for this task.
https://github.com/VedalAI/neuro-amongus/blob/main/Neuro/zzz_excluded/Impostor/ImpostorHandler.cs