I suppose you could do it with some kind of rotating entity. I believe momentary_rot_button works best. Boojum did a tutorial on a continuous rotation in Hammer, but I'm sure that could be easily adapted to rotate back and forth. That's not really going to look too good though, it will be very rigid and look unnatural. How they do it in other games is with animated models.