Quake3World.com Forums
     Programming Discussion
        How to calculate 3rd person vieworg from servercode?


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: How to calculate 3rd person vieworg from servercode?

Recruit
Recruit
Joined: 03 Dec 2015
Posts: 5
PostPosted: 02-06-2021 05:58 AM           Profile Send private message  E-mail  Edit post Reply with quote


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.




Top
                 

Insane Quaker
Insane Quaker
Joined: 05 Mar 2010
Posts: 384
PostPosted: 02-08-2021 06:14 AM           Profile Send private message  E-mail  Edit post Reply with quote


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?




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.