• 3rd person camera variant
    4 replies, posted
Having trouble making a mass effect style camera and movement system, tried a few things but the main problem i am having is as follows: https://files.facepunch.com/forum/upload/654/bff59a5f-53f7-4170-808f-c9c5023d8cb7/image.png The camera rotation is independent of player position, however when pressing a movement key the direction the player will turn is dependent on the direction the camera is facing, but GM/CalcView / EyePos is a client-side function, whereas GM/Move is a server-side function. Is my only option to send the angle of the camera to the server via a net message every tick? or am i overlooking a more efficient solution here. Cheers for any input.
Your best bet would be compensating for it in CreateMove.
Why are you needing to send a net message to the server? This can be done in CalcView just check if a key is being held down. Unless I missing something here. I haven't played the original ME even though I own it.
Ah, i see what you mean. I'll have a play around with CreateMove and get back to you, cheers. The player movement system needs to change as there is no strafing and the forward movement direction is completely decided by WASD.
Success! With a combination of CreateMove() & InputMouseApply() I managed the desired effect. Result: https://files.facepunch.com/forum/upload/654/4c97a4b1-7d01-4aec-9c8b-fae3c1f8427a/2018-09-30_19-13-14.mp4
Sorry, you need to Log In to post a reply to this thread.