Jump to content

Home

Receiving the value of a cvar from a client


Lathain Valtiel

Recommended Posts

I'm horrifically new to Q3 coding, but yeah.

 

Let's say for the sake of argument that I made a new cvar named 'cg_string'.

 

How do I make it so that I could get clients to send the value of 'cg_string' to other clients for use in certain client-side functions? You know, similarly to how we receive the R, G, and B values of their clothing or the color of their saber?

Link to comment
Share on other sites

Well, it's not that simple since client cvar data isn't directly communicated between players. Its gotta be processed by the server and then added to the player's configstring stuff. Look at the rgbsaber code in the OJP code to see an example of how it's done.

 

In addition, code3arena is a great resource for cvar related stuff.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...