Page 1 of 1

Sending client commands via server

Posted: Sat May 30, 2020 9:17 pm
by JustGR
Attempted to make a command that toggles client cvars via the server. I attempted to do this by iterating across all players via PlayerIter and using the send_convar_value() method.

Code: Select all

for humanPlayer in PlayerIter('human'):
         humanPlayer.send_convar_value(convarName, convarValue)


Example - I want to set r_drawothermodels to 2 for all human players at once. It throws up an error:

Code: Select all

SetConVar: Can't set server cvar r_drawothermodels to 2, not marked as FCVAR_REPLICATED on client


sv_cheats was set to 1 before I attempted this. Is it impossible to toggle client cvars via the server, or am I missing something?

Re: Sending client commands via server

Posted: Sat May 30, 2020 10:40 pm
by Speed0x
you can't change drawmodels.

Re: Sending client commands via server

Posted: Sat May 30, 2020 11:23 pm
by JustGR
Yeah figured.