Thanks guys
Has a long way to go to be practically useful methinks, but just experimenting.
@perelect
Quote: "I just thought of this while watching the video.
If you removed the image of the plane in the non zoomed mode of the hud (if that's how you have done it) and used that image as a sprite overlay instead.
When you press A or D you could simply rotate the sprite left and right at the same time to simulate the plane banking left and right."
There are no images being used, the model you see on approach and take-off is the same one that is also copied and used in the weapon HUD.x and the mouselook is controlling flight direction. The views are created by attaching the 'weapon' with lua to the player, thereafter the normal view is the main weapon view and the 'alt' (pressing the weapon 'v' key) moves the HUD forward.
I can see that the video looks like it is an image/sprite and it would actually be easier to do it this way for that effect.
What would be nice would be if the TransportToIfUsed command (or an equivalent) would place the player/cam at the same attitude as the target entity at the end of the transport (or a command that moves the player/cam to an x,y,x position at an angelx, angely,anglez). TransportToIfUsed used to orientate the player to the y angle a few versions ago, but has since stopped doing this - which makes it a bit odd for even simple portal type transports as the new player position y outlook is the same as when the start transport occurs (so could be facing a wall or whatever once transported). Anyway with an upgraded command, realistic banking, climbing, diving etc could be coded in and this HUD approach for a flying vehicle could be a viable option. Also mouse clicks are available outwith the ActivateMouse lua context, but mouse movement isn't - so to really use the mouse to control flying would need to get access to that data too.
All of this type of thing is why I'm wholeheartedly with the idea of being able to get more of the engine exposed via lua, because we could build this stuff for ourselves and share etc.
Cheers.