VedalAI / neuro-amongus

Among Us Plugin for Neuro-sama
GNU General Public License v3.0
531 stars 50 forks source link

Interact with doors, ladders and the flying platform only when moving towards them #68

Closed Taflaxx closed 1 year ago

Taflaxx commented 1 year ago

closes #66

Alexejhero commented 1 year ago

It would be a good idea to not trigger the interaction unless the player is not moving, i.e. they are hitting against the door/wall collider (maybe add a 0.5s timer too or something? not sure if that would help or not). Some of these interactables have a very big usable range so it's possible that the player will be snapped to them.

Taflaxx commented 1 year ago

The player now only interacts when the velocity is 0 and the forced move direction is 1. For example if the NN wants to take a ladder up it has to press up (forced move direction y=1). When it hits the ladder/wall the velocity drops to 0 and triggers ladder.Use().

I couldn't properly test this with the NN because it just didn't walk to tasks (just jitters back and forth). I guess i'm missing training data for it to work correctly.

Alexejhero commented 1 year ago

This pull request needs to be tested with a properly trained neural network @Vedal987