Jump to content

Differences between 'forcecvar' and 'sv_cvar EQ'


Dragonji

Recommended Posts

Are there any differences between forcecvar <command> 0 and sv_cvar <command> EQ 0? I'm browsing the package of the newest silEnT mod and I see there is a file with cvars to force. I noticed that some commands are forced by forcecvar command (eg. forcecvar snaps 20), while others use sv_cvar EQ (eg. sv_cvar r_rmse EQ 0). Could someone explain what are the differences between these two metods of forcing an equal value for a cvar?
Link to comment
Share on other sites

  • Management
The practical difference is that forcecvars are printed to clients while sv_cvars are not. Also, sv_cvars are checked for each client frame. The forcecvar only once. I would suggest using forcecvar whenever possible and sv_cvar when you feel it is needed. I don't know has there been any reason to select one over the other when creating the default file.
Link to comment
Share on other sites

  • 1 year later...

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...