Jump to content

Force clients cvar


Recommended Posts

Is there any way to force clients to different settings?

 

I used nitmod before, and nitmod has had the following features to force clients to different settings. :

 

forcecvar [cvar] [value]
sv_cvarempty 
sv_cvar [cvar] [mode] [value1] [value2]
 
 
EQ vagy EQUAL
G vagy GREATER
GE vagy GREATEREQUAL
L vagy LOWER
LE vagy LOWEREQUAL
IN vagy INSIDE
OUT vagy OUTSIDE        
INC vagy INCLUDE
EXC vagy EXCLUDE
 
or 
 
sv_cvar cg_bobup IN 0 0.005
sv_cvar cg_fov IN 90 120
sv_cvar r_ambientScale EQ 0.5
 
 
Is there any way to force clients to different settings in silentmod too.
I know the mod supports the Lua scripting but the lua is only server side so I can't force clients!
 
 
 
Thanks for help and for answers!
 
 
Regards 
 
(CWL)Batyesz
Edited by (CWL)Batyesz
Link to comment
Share on other sites

From the wiki:

 

Q: How do I make forcecvar or sv_cvar work?

A: silEnT server is able to force client cvars to certain values or ranges by using forcecvar and sv_cvar commands. sv_cvarempty will clear all the sv_cvar commands the server has loaded.

To use the possibility, the g_mapConfigs must be set. All forcecvar and sv_cvar commands that are placed in the default.cfg, will be executed on every map start. Those settings can be overloaded by using a map specific cfg name [mapname].cfg. More help is available at silEnT forums.

Edited by Chuckun
Link to comment
Share on other sites

  • Management

Yes. I didn't find it from the wiki, but you can use the same sv_cvars and forcecvars as with N!tmod. Look at the default.cfg in mapconfigs directory for an example. The mapconfigs system explained, without the cvar forcing commands unfortunately, http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_mapConfigs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...