Jump to content

Photo

forcecvar


  • Please log in to reply
3 replies to this topic

#1
OFFLINE   Tosa_Inu

Tosa_Inu

    Regular Member

  • Members
  • PipPipPip
  • 120 posts
13
A step in the right direction
forcecvar [cvar] [value]
Forces a client cvar to have a certain value for all clients

Where is this file located? I can't find it.

#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4474 posts
362
I am just really nice
  • LocationFinland
These files are located in the mapconfigs folder under the mod folder.

The "default.cfg" will take effect with all maps and optionally an additional <map name>.cfg can be used. The map specific forcecvars and sv_cvars are executed after the default ones.

Example of a cfg file for Fueldump: fueldump.cfg. The file name must be the same as the bsp file name or what you put in the map rotations for example.

#3
OFFLINE   cinco

cinco

    Member

  • Members
  • PipPip
  • 42 posts
5
A step in the right direction
  • LocationSpain
Hello, I've tried using the cvars forced .........

While the command is working correctly for Forcecvar cvar absolute values??.
Example "forcecvar r_ambientScale 0.5" working properly

But I can not get work for command values ??sv_cvar IN, EQ, INCLUDE, and OUT

For example, "sv_cvar com_maxfps IN 40 125" does not work correctly.

In the log I can read:
mapconfigs execing / default.cfg
Info string length exceeded

What is the correct syntax for sv_cvar?

Thank you, and congratulations for his work on Silent mod

#4
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4474 posts
362
I am just really nice
  • LocationFinland
sv_cvar com_maxfps IN 43 125

On my own server the minimum is set to 60. Works for me.

Info string length exceeded


Suggests you may have some problems with the syntax or the amount. Both sv_cvar and forcecvar uses 1 config string. Total of 2 config strings. The maximum size is 1024 bytes for one config string.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users