Changing a client cvar value from the server?

Locked
bludshot
Posts: 65
Joined: Thu Nov 26, 2009 6:14 am

Changing a client cvar value from the server?

Post by bludshot »

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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Changing a client cvar value from the server?

Post by ^misantropia^ »

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