Rifle in hand (haven't tried many weapons) - begin sprinting - while sprinting single right click (don't stop to aim down the sights, assume it was an accidental click) - within the next moment or two your character will begin to seize up before hitting an invisible wall.
The user can stop sprinting, move left or right in order to break out of the 'stuck' position.