Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Force clients cvar


  • Please log in to reply
3 replies to this topic

#1
OFFLINE   (CWL)Batyesz

(CWL)Batyesz

    Newbie

  • Members
  • Pip
  • 14 posts
1
A step in the right direction

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, 02 February 2014 - 11:02 PM.


#2
OFFLINE   Chuckun

Chuckun

    Regular Member

  • Members
  • PipPipPip
  • 130 posts
20
On a distinguished road

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, 03 February 2014 - 12:00 AM.


#3
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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....ar#g_mapConfigs.



#4
OFFLINE   (CWL)Batyesz

(CWL)Batyesz

    Newbie

  • Members
  • Pip
  • 14 posts
1
A step in the right direction

@Chuckun

 

Aha Thanks I found it on the following link:

http://mygamingtalk....var_.26_sv_cvar

 

Thanks.

 

@gaoesa

 

Thanks for your answer and useful link :)

 

 

Regards (CWL)Batyesz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users