Page 1 of 1

KAC 1.2 function COMP_GREATER

Posted: Sun Sep 27, 2009 2:03 am
by Coyote
:( I have a very big annoying problem
if i add a line like this in cvar.sp

Code: Select all

CVars_AddCVar("cl_cmdrate", 		COMP_LESS, 	ACTION_KICK, 	"66.0", 0.0, 	PRIORITY_MEDIUM);
it work's and if i connect to the server with cl_cmdrate 100 KAC kicks me with message about the cvar but if i add that one

Code: Select all

CVars_AddCVar("cl_cmdrate", 		COMP_GREATER, 	ACTION_KICK, 	"66.0", 0.0, 	PRIORITY_MEDIUM);
kac also kicks me and the kac message is about cheating infraction and without the line i can play normally,
adn why i cant add checking cvars like cl_cmdrate cl_updaterate cl_rate

Re: KAC 1.2 function COMP_GREATER

Posted: Tue Sep 29, 2009 5:04 am
by Kigen
The CVar detection engine wasn't meant to have two checks on one convar.

That being said I point you to using COMP_EQUAL if you want the client's convar to patch a particular value or COMP_BOUND if you want it to be within certain bounds.

Re: KAC 1.2 function COMP_GREATER

Posted: Tue Sep 29, 2009 6:06 am
by Coyote
why i cant add checking cvars like cl_cmdrate cl_updaterate cl_rate? It says "invalid cvar"

Re: KAC 1.2 function COMP_GREATER

Posted: Mon Oct 05, 2009 10:32 am
by lhffan
Those cvars is unessesary to add

1. They are not cheat´s if they are lower
2. Set the min values on ur server and the client will obey.
2.1 ^ If the fps of the client is lower the cmdrate will be lower