Basically it goes all over the place, like it'll swing left or right for some reason rather than going forward.
That is how it is supposed to be.
You can enable Delag in options and play on unlagged servers if you want it to go forward. You can also set cg_truelightning = 1.0, but that will only make it look like the beam goes forward.