ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 24-Nov-10 23:27:18

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,098

Re: HOWTO : forcecvar and sv_cvar

forcecvar cvar value
    Command used to force clients cvars to a specific value

    Exemple : forcecvar cl_maxpackets 100


sv_cvar cvar mode value1 value2
    Command used to restrict client cvars values.

    Available modes :

  • EQ or EQUAL

  • G or GREATER

  • GE or GREATEREQUAL

  • L or LOWER

  • LE or LOWEREQUAL

  • IN or INSIDE

  • OUT or OUTSIDE

  • INC or INCLUDE

  • EXC or EXCLUDE

    Exemple : sv_cvar cg_fov IN 90 120 (Clients will be forced to set "cg_fov" to a value >= 90 and <= 120)

sv_cvarempty
    Command used to empty the sv_cvar's in memory.

Here's the best way to use these commands, in a .cfg file (ETPro .config like structure).

1) Download our sample fcvars.cfg there : http://etmods.net/downloads/fcvars.cfg
2) Put it in your nitmod folder
3) Add :

set g_customConfig "fcvars.cfg"

into your server config (usually server.cfg or nitmod.cfg)

The "fcvars.cfg" will then be loaded everytime a map starts.


iluvnitmod.png

Offline

Board footer

Powered by FluxBB