How to calculate 3rd person vieworg from servercode?

Locked
leo9949
Posts: 5
Joined: Thu Dec 03, 2015 1:15 pm

How to calculate 3rd person vieworg from servercode?

Post by leo9949 »

The topic says it all:

how to calculate cg.refdef.vieworg (calculated in cg_view.c) from server-side code?

:) I'm trying to find out, but I'm just asking just in case someone already knows the answer.
themuffinman
Posts: 384
Joined: Fri Mar 05, 2010 5:29 pm

Re: How to calculate 3rd person vieworg from servercode?

Post by themuffinman »

Easy solutions from the top of my head:
1. Send vieworg information from client via server command, probably not network efficient
2. Add thirdperson cvars to clientinfo (CVAR_USERINFO flag), mirror CG_OffsetThirdPersonView on server side using said userinfo to predict where vieworg is.

What are you trying to achieve?
Locked