PDA

View Full Version : Cs Source Networking Script


coogle
11-04-2005, 06:29 PM
Trying to get as little lag on my dialup as possible, I ran across this very useful little script to chuck into your userconfig.cfg on the steam forums (you may have it already)

Basically binds a key (F2 in this case)
to set various networking configs. I added a couple of things, from another site where it suggested that some of them were linked to the FPS you were running, so it changes that as well.

just copy and paste the following.

>
// qUiCkSiLvEr client-side rate control
echo "rate settings on F2 and keywords: dslow,vslow,slow,norm,fast,vfast,lfast and rates"
unbind "F2"
//
alias "dslow" "fps_max 30;rate 2500;cl_rate 5000;cl_updaterate 10;cl_cmdrate 10;cl_interp 0.100; bind F2 vslow;echo dead slow speed"
alias "vslow" "fps_max 40;rate 3500;cl_rate 5000;cl_updaterate 13;cl_cmdrate 13;cl_interp 0.077; bind F2 slow;echo very slow speed"
alias "slow" "fps_max 60;rate 3500;cl_rate 5000;cl_updaterate 15;cl_cmdrate 15;cl_interp 0.067; bind F2 norm;echo slow speed"
alias "norm" "fps_max 100;rate 7500;cl_rate 7500;cl_updaterate 20;cl_cmdrate 30;cl_interp 0.050; bind F2 fast;echo normal speed"
alias "fast" "fps_max 100;rate 9999;cl_rate 9999;cl_updaterate 30;cl_cmdrate 40;cl_interp 0.033; bind F2 vfast;echo fast speed"
alias "vfast" "fps_max 100;rate 20000;cl_rate 20000;cl_updaterate 60;cl_cmdrate 60;cl_interp 0.017; bind F2 lfast;echo blazing speed!"
alias "lfast" "fps_max 100;rate 20000;cl_rate 20000;cl_updaterate 100;cl_cmdrate 100;cl_interp 0.010;bind F2 dslow;echo LAN blazing speed!"
//
bind "F2" "slow"

alias "rates" "fps_max;rate;cl_rate;cl_updaterate;cl_cmdrate;cl_i nterp"
>

just watch the word wrap.
Basically I'm running on vslow, getting about 150 latency, and 0 choke unless a whole mess of - happens at once.
Goodluck.

AlCaTrAzz
12-04-2005, 09:34 AM
nice script coogle... i'll post my buying scripts later on when i get home... very very useful stuff

PHOENIX_12
12-04-2005, 03:23 PM
umm can anyone help teh cs script n00b and explain to me what it is exactly that this dose piece by piece? i understand it helps laggyness, how etc?

coogle
12-04-2005, 04:23 PM
http://home.covad.net/~k25125/SteamyThings...Graph_Steam.htm (http://home.covad.net/~k25125/SteamyThings/NetGraph_Steam.htm)

This is where most of the commands are listed.

Rate (Max recieve of client bits/s)
cl_rate (Max send of client bits/s)
cl_updaterate (number of updates/sec requested from server)
cl_cmdrate (number of updates/sec sent to server. Apparently linked to fps)
fps_max (well...)
cl_interp (0.1-0.01, is the number of microseconds the client should process it self where the bullets went etc. ie doing some more processing locally, rather than spamming the link. you would see this if you run around a corner shoot someone, and find out a second or so later you died at the corner before firing a shot)

So in effect each line in the script is reducing the overall data to be running down the link, reducing choke, where it queues up info, giving you lag.

Very helpful if moving between diff networks ie broadband or modem, or good servers to -py servers.

PHOENIX_12
12-04-2005, 05:49 PM
kk cool so where do i enter all this?

coogle
12-04-2005, 07:44 PM
in the counterstrike source/cstrike folder in a file called userconfig.cfg.
Create it using a text prog if it doesnt' exist.

PHOENIX_12
12-04-2005, 07:52 PM
kk ty will check it out

Shadoxity
13-04-2005, 08:07 PM
and u have to put it in counterstrike:source/cstrike/cfg

PHOENIX_12
13-04-2005, 10:38 PM
that explaines why i didn't notice the diference hehe