Stopping the player after every step

This is maybe a bit sadistic sounding, lol. I'm making a dungeon crawler in first person (that first person part is sorted out), and a common thing in dungeon crawlers is the player stopping for a few frames after making a step. This may seem like a devil feature but it really does help make the dungeons feel... bigger.
I've tried with events and common events, and also tried using YEP's event key plug in, but neither worked. Well, the common events I tried didn't work. The plugin did, but it had the side effect of not properly stopping the player when they hit an event, usually making them go forward a step more than they should, which really does not look good when in first person.
Does anyone have a solution for something like this ? Either a plugin, a script call, a common event...
Thanks in advance !
Basically you need to add a wait AFTER a step.
The easiest way is make a plugin. You can edit the number to change the wait frames.

JavaScript:
(function(alias){
Game_Party.prototype.onPlayerWalk = function() {
          $gamePlayer.forceMoveRoute({
            list: [{
              code: Game_Character.ROUTE_WAIT,
              parameters: [20]
            },{
              code:Game_Character.ROUTE_END,
              parameters:[]
            }],
            repeat: false,
            skippable: true,
            wait: false
          });
    alias.call(this);
};
})(Game_Party.prototype.onPlayerWalk);
It works ! Thanks a lot !
After some testing, it seems this plugin completely disables random encounters. This is maybe something to do with the way the game counts steps.

Original thread: https://forums.rpgmakerweb.com/threads/stopping-the-player-after-every-step.172189/