Adding Head Bob

Is there a way you can add headbob without animations? I looked on the the FPS example map but I had no luck.