KAC 1.2 function COMP_GREATER

Found a bug in KAC? Post it here.
Locked
Coyote
Posts: 15
Joined: Sat May 02, 2009 8:46 am
Location: Russia Moscow
Contact:

KAC 1.2 function COMP_GREATER

Post by Coyote » Sun Sep 27, 2009 2:03 am

:( 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
Sorry for my bad English

User avatar
Kigen
Site Admin
Posts: 1495
Joined: Sat Jun 07, 2008 11:08 am
Location: Right behind you....
Contact:

Re: KAC 1.2 function COMP_GREATER

Post by Kigen » Tue Sep 29, 2009 5:04 am

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

Coyote
Posts: 15
Joined: Sat May 02, 2009 8:46 am
Location: Russia Moscow
Contact:

Re: KAC 1.2 function COMP_GREATER

Post by Coyote » Tue Sep 29, 2009 6:06 am

why i cant add checking cvars like cl_cmdrate cl_updaterate cl_rate? It says "invalid cvar"
Sorry for my bad English

lhffan
Translator
Posts: 100
Joined: Fri Aug 01, 2008 6:19 am

Re: KAC 1.2 function COMP_GREATER

Post by lhffan » Mon Oct 05, 2009 10:32 am

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

Locked

Who is online

Users browsing this forum: No registered users and 1 guest