Raised This Month: $ Target: $400
 0% 

Please delete this topic


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 04-08-2006 , 16:51  
Reply With Quote #1

Quote:
Originally Posted by capndurk
I still don't understand. If the problem is assigning 16 query_client_cvars to one function, then just make more functions.. like 5 different cvar functions:

Code:
public checkCvars1(id, const cvar[], const value[]) {     gf_value = str_to_float(value);     if(gf_value != g_value[g_count])     {         client_cmd(id, "%s %f", cvar, gf_value);     }         return PLUGIN_HANDLED; } public checkCvars2(id, const cvar[], const value[]) {     gf_value = str_to_float(value);     if(gf_value != g_value[g_count])     {         client_cmd(id, "%s %f", cvar, gf_value);     }         return PLUGIN_HANDLED; } public checkCvars3(id, const cvar[], const value[]) {     gf_value = str_to_float(value);     if(gf_value != g_value[g_count])     {         client_cmd(id, "%s %f", cvar, gf_value);     }         return PLUGIN_HANDLED; } public checkCvars4(id, const cvar[], const value[]) {     gf_value = str_to_float(value);     if(gf_value != g_value[g_count])     {         client_cmd(id, "%s %f", cvar, gf_value);     }         return PLUGIN_HANDLED; } public checkCvars5(id, const cvar[], const value[]) {     gf_value = str_to_float(value);     if(gf_value != g_value[g_count])     {         client_cmd(id, "%s %f", cvar, gf_value);     }         return PLUGIN_HANDLED; }

And create more if necessary.
There are already 5... fn_query1, fn_query2, fn_query3, fn_query4, and fn_query5. If you split them up anymore then you won't be able to check them within every 5 seconds. The goal is to check 16 per second which will result in all 80 checked every 5 seconds. If you can't check all 80 in 5 seconds using arrays then there is no point in using arrays. The point of the plugin is to keep them from changing them back. If the values are only enforced every 30 seconds (or however long it would take to cycle through all 80) that would be a pretty weak useless plugin. That means that for 30 seconds (or however long) someone could have gl_polyoffset set to 999999 which allows some wall hacks to work. 30 seconds or anywhere close to that would be unacceptable and make the plugin useless because its goal of strictly enforcing CAL settings would not be accomplished.
SubStream is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode