Is is what you need, just ignore the fact he’s using animations. The crucial bit ( for you ) is at:
( this should play at 348 seconds ). The system depends on doing a line trace to the floor to find out what sort of material is there.
You can do this when you press W, doesn’t matter about animations