Quake3World.com Forums
     Programming Discussion
        Changing a client cvar value from the server?


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




Print view Previous topic | Next topic 
Topic Starter Topic: Changing a client cvar value from the server?

Grunt
Grunt

Joined: 25 Nov 2009
Posts: 64
PostPosted: 08-29-2011 02:24 PM           Profile Send private message  E-mail  Edit post Reply with quote


Can you change a client's cvar value from the server? If I wanted to do that, is the correct way to do it to use trap_SendServerCommand(int clientNum, const char* command_string) and then go from there? Or should it be done some other way?




Top
                 

Mentor
Mentor

Joined: 12 Mar 2005
Posts: 3957
PostPosted: 08-29-2011 03:15 PM           Profile Send private message  E-mail  Edit post Reply with quote


Only if your mod controls the client and the server side. Adding a new server command is probably the easiest way to implement it.




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group