Hi, guys!
I'm going to write a tutorial for a friend about making a floating camera, like you'd get in a spectator mode, but I'm not sure if my way is the right way.
The most obvious way to fly would be to use movetype_fly, but I never got it to work properly. Instead, I left the player on the regular walking movetype and just offset gravity every prethink, making sure to keep fl_onground in check. It works nicely as far as I can tell, but I'm a bit concerned about the effect it'd have on some engines and also how well it'd behave in multiplayer.
As for controls, I hijacked the player's velocity vector every frame to 'read' keypresses. This is handy because I can then write my own movement system but, again, is it the best way?
Thanks in advance!