Dragonji Posted November 3, 2011 Share Posted November 3, 2011 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? Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted November 3, 2011 Management Share Posted November 3, 2011 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. Dragonji 1 Quote Link to comment Share on other sites More sharing options...
wawin Posted January 17, 2013 Share Posted January 17, 2013 Hi, Is it possible to make someone a lua script to execute cvars every 5-10 minutes (maybe a lua script where we can set the time)? Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted January 17, 2013 Management Share Posted January 17, 2013 It is not possible to execute commands in the client. The only options are sv_cvar and forcecvar. With both of them, it is sufficent to execute once per map as the values are placed in config strings. Quote Link to comment Share on other sites More sharing options...
wawin Posted January 17, 2013 Share Posted January 17, 2013 I know that, but the cheaters can have 2 config with cvars off at the end of map and cvars on after new map is starting. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted January 17, 2013 Management Share Posted January 17, 2013 Did you use the new 0.6.3 Lua feature to check that is the case? If you find such players I would recommend banning them rather then worrying how to enforce something that can't be enforced. Quote Link to comment Share on other sites More sharing options...
wawin Posted January 17, 2013 Share Posted January 17, 2013 Just I installed silent 0.6.3 and lua feature too. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.