That is a vanilla feature. You can only push non-companion NPCs towards a non-occupied hex in the direction away from you. It only works when they are standing still, not facing an obstacle of any kind (wall, another NPC blocking a doorway, etc) and not while random shuffling about. Standard...