i was thinking first about pev_aiment but that will works only if entity is player.
I think you should get your entity angle / velocity( not origin ) and set it for your weapon entity.
why velocity and not origin, because if you do it with origin then player with little higher ping see that entity moving is lagging.
( register_think for entity and do things in there )