News:

Come Chat with us live! Learn how HERE!

Main Menu

Client-side Cvars

Started by doomagent13, July 01, 2007, 06:08:49 AM

doomagent13

Is there any way to get a list of all client-side Cvars, both those in the client itself, and in the cgame?  Also, does the server do anything with the allowed cgame, or is it just dealt with as part of the vm pk3 checksum?

Lakitu7

First question, /cvarlist, but it will usually exceed the length of your buffer so I tend to just go look at the code instead.

I'm not the person to answer the second question though, sorry.

kevlarman

you're probably better off reading the *local.h for a cvar list (though it isn't complete, some cvars don't have a vmCvar_t or cvar_t associated with them). the cgame is like any other file in a pk3, actions beyond the pure check are taken to ensure its integrity.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

doomagent13

I guess I meant "Can you send the client a command that will make it tell the server and only the server (meaning, not through chat) what Cvars are available?"  The client, renderer, and ui Cvars are less important than the cgame Cvars, I think.

@kevlarman:
I know that they can be found in *local.h, but I suppose one way to put it would be that I would like to make a deeper pure check.  Null's aimbot adds a few Cvars, and adding a check for them would eliminate the need for debate over a whether a demo proves that it is an aimbot.

kevlarman

Quote from: doomagent13I guess I meant "Can you send the client a command that will make it tell the server and only the server (meaning, not through chat) what Cvars are available?"  The client, renderer, and ui Cvars are less important than the cgame Cvars, I think.

@kevlarman:
I know that they can be found in *local.h, but I suppose one way to put it would be that I would like to make a deeper pure check.  Null's aimbot adds a few Cvars, and adding a check for them would eliminate the need for debate over a whether a demo proves that it is an aimbot.
what cvars are available are meaningless, you can create a cvar with any name easily, and a client can lie about what cvars they have. there is no distinction between cl_,ui_,r_,com_,etc. cvars other than the code that uses them.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Caveman

besides, Null's source is already out there and thus checking for any special cvar would not get you the desired results.