Raised This Month: $ Target: $400
 0% 

[REQ]get server rates


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 10-11-2007 , 06:26   [REQ]get server rates
Reply With Quote #1

Get server & client rates as well

Is there a way to let clients that connect to my game servers find out what rates i'm running. EXAMPLE: you type /rates and then the following rate settings would be announced in chat,tsay or console.

SERVER SIDE:
sv_maxrate
sv_minrate
sv_maxupdaterate
sv_minupdaterate
sys_ticrate

CLIENT SIDE:
rate
cl_updaterate
cl_cmdrate

I'm really tired of some CAL O noob who cant hit the side of a barn door saying "use the proper rates for goodness sakes".
They say to use rate 30000,cl_updaterate 101 and cl_cmdrate 101 which is bs.

I even made a rate tester.cfg in order to show them those rates cause choke.
If you want to check it out you can DL it at the link below.

client rate tester.cfg

Anway i digress, This would be invaluable to server admins as a tool to set the noobs that dont know jack about running servers straight once and for all.

Would anyone be interested in coding this for the community because if possible, I think it would also work for all HL1 mods and i'm sure CS admins are getting tired of this as well. Thanks -M
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.

Last edited by MAUGHOLD; 10-11-2007 at 06:41. Reason: fixing link,editing the topic
MAUGHOLD is offline
_Tool_
Junior Member
Join Date: Sep 2007
Old 10-11-2007 , 11:30   Re: [REQ]get server rates
Reply With Quote #2

I'm sure someone will bitch I didn't use pcvars or another way, but for something this short and simple:

Code:
#include <amxmodx>
 
new maxrate,minrate,maxupdaterate,minupdaterate,ticrate;
 
public plugin_init() {
   register_clcmd("say /rates","clcmd_rates");
   maxrate = get_cvar_num("sv_maxrate");
   minrate = get_cvar_num("sv_minrate");
   maxupdaterate = get_cvar_num("sv_maxupdaterate");
   minupdaterate = get_cvar_num("sv_minupdaterate");
   ticrate = get_cvar_num("sys_ticrate");
}
 
public clcmd_rates(id) {
    client_print(id,print_chat,"Server sv_maxrate: %d",maxrate);
    client_print(id,print_chat,"Server sv_minrate: %d",minrate);
    client_print(id,print_chat,"Server sv_maxupdaterate: %d",maxupdaterate);
    client_print(id,print_chat,"Server sv_minupdaterate: %d",minupdaterate);
    client_print(id,print_chat,"Server sys_ticrate: %d",ticrate);
    return PLUGIN_HANDLED;
}
Btw, cl_updaterate 101 and cl_cmdrate 101, and rate 25000 ARE probably the best rates for most people if you have a decent cable modem and the server has good bandwidth. However, that being said each client can only take so much info that you send them. I would set the sv_maxupdaterate to 100 and maxrate to 25000 if it's a typical hl1 game, it's 16 slots or less, and the server is good quality. Howerver if it was a game with shit flying everywhere (TFC esque) and like 32 people I'd set it to like updaterate 66 and maxrate 10000 at the most since a client can't handle that much info at once due to internet limitations. I prefer setting the minrates more than anything. No reason someone should have a minrate lower than 7000-8000 and an sv_minrate lower than 30 unless they're intentionally trying to chop like shit.

Last edited by _Tool_; 10-11-2007 at 12:10.
_Tool_ is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 10-14-2007 , 00:21   Re: [REQ]get server rates
Reply With Quote #3

Thanks Tool I'll try this out.

I run a 1000 tic server on a full 100MB uplink to gigE backbones and my client is running on 25Mb down and 3Mbs up line with tweaked Rwin settings.

I do see a little smoother game play most of the time with those rates but when the choke and loss comes it's bad. Most people dont even know how to run a clean line so thats why i force the following rates with the cvarguard plugin. And most people say they get the best ping & hitreg on my server of any server they play on.

rate 18000
cl_updaterate 40
cl_cmdrate 50


Those seem to work well for most peoples line.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.

Last edited by MAUGHOLD; 10-14-2007 at 17:41.
MAUGHOLD is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 10-14-2007 , 17:42   Re: [REQ]get server rates
Reply With Quote #4

Ok it compiled fine but after saying /rates nothing shows up on screen or in console.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 11-20-2007 , 17:44   Re: [REQ]get server rates
Reply With Quote #5

When i first compiled this and installed it, It didn't work so i just recompiled it today and now it works great. Thank you Tool.

In HLSW it doesn't show the authors name or the name of the plugin though.
I'm going to add that for you And if you dont mind, I'm also going to try to add a few other things too it, Like the ability for clients to show their own rate settings to the server by typing /myrates.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD 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 11:01.


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