Welcome to Gaia! ::

The Valve Gaming Guild

Back to Guilds

This guild is dedicated to the Valve Corporation. Makers of Half Life. 

Tags: Valve, Team Fortress 2, Portal, Counter Strike, Left 4 Dead 

Reply Counter-Strike
Engine Tweaks

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

CaptainBaconMan
Vice Captain

PostPosted: Thu Mar 05, 2009 8:37 am


This thread was taken from another guild, it was originally posted by j5689

It can be found here



This is a list of tweaks (They are all legal and will not get you in trouble with the VAC) that I will compile for both CS 1.6 and Source, I am more biased for the quality side of things so if I get carried away with quality tweaks rather than performance tweaks, please excuse me for that.

Note that these also work with games running on the same engine version. For instance: 1.6 tweaks will work with the original Half-Life, Opposing Force, Blue Shift, Team Fortress Classic, Deathmatch, Ricochet, Day of Defeat and all others of that era. Whereas the Source tweaks will work with all Source games, such as the Half-Life 2 series, Day of Defeat: Source and all other Source games.

Update: Now featuring "Counter-Strike: Condition Zero" tweaks.

--------------------------------------------------------------------------------------

Most of this will involve cutting and pasting in "autoexec.cfg"

It is a configuration file that is initiated upon start-up of both versions of Counter-Strike.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

For 1.6, it can be located by doing this:

1. Open "My Computer"

2. Click on your hard drive that you use for Steam, this will usually be Drive C.

3. Click on "Program Files"

4. Then look for the "Steam" folder.

5. Click on the "steamapps" folder

6. Then click on your username for Steam.

7. Click on "counter-strike"

8. Then "valve"

9. Right-click anywhere in the folder and create a new text document (not MS word).

10. Right-click on the new text document, rename this text file: autoexec.cfg

11. It should ask you if you really want to rename this file because it will change the file type, select yes. If you do not get this message, follow these steps:

12a. Click on "tools" at the top of the window.

12b. Then "Folder Options".

12c. Then the "View" tab.

12d. Scroll down the list to "Hide extensions for known file types" and uncheck the box and hit Apply/O.K.

12e. The text file should now be called "autoexec.cfg.txt", right-click on it and rename the file to not include .txt

13. You're done! smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

For Source, "userconfig.cfg" must be created, and here is how to do it:

1. Open "My Computer"

2. Click on your hard drive that you use for Steam, this will usually be Drive C.

3. Click on "Program Files"

4. Then look for the "Steam" folder.

5. Click on the "steamapps" folder

6. Then click on your username for Steam.

7. Click on "counter-strike source"

8. Then "cstrike"

9. Then "cfg"

10. Right-click anywhere in the folder and create a new text document (not MS word).

11. Right-click on the new text document, rename this text file: autoexec.cfg

12. It should ask you if you really want to rename this file because it will change the file type, select yes. If you do not get this message, follow these steps:

12b. Click on "tools" at the top of the window.

12c. Then "Folder Options".

12d. Then the "View" tab.

12e. Scroll down the list to "Hide extensions for known file types" and uncheck the box and hit Apply/O.K.

12f. The text file should now be called "autoexec.cfg.txt", right-click on it and rename the file to not include .txt

13. You're done! smile

--------------------------------------------------------------------------------------

We'll start with one that can help everybody, connection tweaks:

For 1.6, these are the ones that I found:

Connection (Optimal Settings):

rate "25000"
cl_updaterate "100"
cl_cmdrate "100"
cl_lc "1"
cl_lw "1"
ex_interp "0.1"

If you have lag with the optimal settings try these values:
rate "7500-10000"
cl_updaterate "20"
cl_cmdrate "30"

For Source, I found these:


56k
rate 3000
cl_cmdrate 15
cl_updaterate 10
cl_rate 9999
cl_cmdbackup 2

112k
rate 6000
cl_cmdrate 20
cl_updaterate 15
cl_rate 9999
cl_cmdbackup 2

256k
rate 9000
cl_cmdrate 25
cl_updaterate 20
cl_rate 9999
cl_cmdbackup 2

384k
rate 15000
cl_cmdrate 30
cl_updaterate 25
cl_rate 9999 *OR* 15000
cl_cmdbackup 2

512k
rate 17000
cl_cmdrate 35
cl_updaterate 30
cl_rate 9999 *OR* 17000
cl_cmdbackup 2

768k
rate 20000
cl_cmdrate 40
cl_updaterate 35
cl_rate 9999 *OR* 20000
cl_cmdbackup 2

1MB+
rate 23000
cl_cmdrate 45
cl_updaterate 40
cl_rate 9999 *OR* 23000
cl_cmdbackup 2

--------------------------------------------------------------------------------------

Now for tweaking the game to run processor instructions, here is what that will do:

What it does is give you a few more FPS (Frames Per Second) by taking some of the load off of the video card and giving it to the processor. Note that this will not work if you have overclocked your processor, as overclocking somehow disables processor instructions.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

For 1.6:

copy

r_mmx "1"

into your autoexec.cfg file

MMX is the only processor instruction the original CS was programmed to use. SSE, SSE2 and 3DNow! were probably not released yet.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

For Source:

copy

r_mmx "1"
r_sse "1"
r_sse2 "1"

3DNow! is exclusively for AMD if you don't know. You can still paste it in if you have an Intel processor but it will not work, and therefore would best be left out. So if you use an AMD processor you can put this one in too:

r_3dnow "1"

This tweak should give you 5-10 more fps.

--------------------------------------------------------------------------------------
PostPosted: Thu Mar 05, 2009 8:39 am


1.6 exclusive tweaks:

These are tweaks that work only on 1.6 and similar games.

These also go in the userconfig.cfg file, I used to think it should go in the autoexe.cfg but that didn't work with all of my games, before that I thought it went in the config.cfg file but that is overwritten every time you change the settings in-game or even start up the game for all but a few of these tweaks. userconfig has more priority over config.

Update: Changed autoexec.cfg in previous paragraph to userconfig.cfg

userconfig has been found by me to work better in Steam original games (not Source games) than autoexec

userconfig can be created similarly to how autoexec was created

Note that autoexec should be emptied but NOT deleted so as to keep stability.


To set a value, press space after the command then " then the number then another" Example: ati_npatch "1"


It is formatted like this:

command

description of what the command does

command

description of what the command does
------------------------------------------------------------------------------------------

ati_npatch "1.0"
ati_subdiv "7.0"

This will enable ATi truform, i'm not sure if it's still supported for some games from this era but if you want possible quality improvement enable it and set the subiv value according to the quality you would like, there are 7 values, 7 being highest, 1 being lowest. Note that it can be demanding so if you lag already then set the npatch value to 0.

cl_himodels "x"

The default for this is 0. It makes the player models(multiplayer) higher quality when set to 1, everything is more detailed and the geometry is a little better from what i've seen.

m_filter "0" for USB
m_filter "1" for PS/2 and Serial (if you still use Serial ports for stuff it's definitely time for an upgrade)

This is the mouse filter, which can be enabled in-game. The place where I got this tweak advises that if your mouse is USB capable, you should definately use it over PS/2.

cl_righthand (1 is right hand, 0 is left hand)

This tells the game which hand you would like to be holding the guns with, although this, too, can be configured from the in-game options. Do not forget to put quotation marks in front of and behind the number.

cl_dynamiccrosshair "x"

The default for this is 1. Setting this to 0 will allow you to use the crosshair from previous versions of the original Counter-Strike. This can be set from in-game and would best be done there.

gl_keeptjunctions "x"

Enabling this will make sure you wont see any crashes and/or 3d bugs, disable it for more FPS.

gl_texsort "x"

Multi-texturing, you should disable it if you have a REALLY old video card.

gl_smoothmodels "x"

Enable for quality, disable for performance.

vid_wait "x"

Enable it for Vsync, disable to disable Vsync.

r_mirroralpha "x"

Enable to see some objects like 1337 sunglasses and stuff like that, disable for more performance.

precache "x"

Enable if you have more than 64MB of RAM, disable if you don't. It will improve performance if enabled. Most people have much more than 64MB of RAM by the year 2007 so it is strongly advised that this be enabled.

cl_weather "x"

Enable or disable rain on the "Aztec" map.

cl_minmodels "x"

If you enable this, the game only uses 2 models: SAS and 1337

Enable for big performance gain, disable to see all the models.

gl_texturemode

There are multiple options you can put for this:

You can use

Trilinear (better for DirectX) options:
"GL_LINEAR_MIPMAP_LINEAR" (Trilinear, high quality)
"GL_LINEAR_MIPMAP_NEAREST" (Trilinear, low quality)

OR

Bilinear (better for OpenGL) options:
"GL_NEAREST_MIPMAP_LINEAR" (Bilinear, high quality)
"GL_NEAREST_MIPMAP_NEAREST" (Bilinear, high quality)

fastsprites "x"

enables with a "0", "1", or "2"

The lower the number the higher the quality and the higher the number, the higher the performance.

0 being best quality, worst performance

2 being best performance, worst quality

1 being somewhere in the middle.

What this does is makes the explosions more realistic looking, I have mine on 0 and it no longer looks like a cheesy explosion.

gl_lightholes "x"

Lightholes, disable for a little performance gain.

gl_max_size (possible values are as follows: 16,32,64,128,256,512,1024 choose only one of these) default is 128, should not go below 64

Lower value means less quality and more performance and higher value means less performance and more quality. By quality, I am referring to the quality of the textures.

After testing it, this is not based off of your amount of VRAM on the graphics card but it determines the max size of a texture file.

r_shadows "x"

Enables or disables shadows in game. Shadows will look good, no shadows will improve performance.

r_traceglow "x"

A value of 1 will make player models non-transparent with regards to light halo's, e.g. If there is a scientist in front of you & a lamp behind him you should not be able to see any light halo from the lamp through his body. While this is graphically realistic, it results in a fairly significant performance hit. 0 is the default & recommended for most users, as from the earlier example, this setting would let the light halo from the lamp be seen through the scientists body.

gl_palette_tex "x"

Enable for palleted textures, disable for some performance.

bgmvolume "x"

Enable to use CD volume, which is worse than normal volume, it is highly recommended that this be disabled as it let's you hear things more easily and will likely improve performance and quality.

gl_wateramp "x"

Puts waves in the water when enabled, I believe this is enables by default.

CaptainBaconMan
Vice Captain


CaptainBaconMan
Vice Captain

PostPosted: Thu Mar 05, 2009 8:40 am


Counter-Strike: Source tweaks

voice_enable "1"

This should be set to 0 if you're not using a microphone, or if you want more ease and stability, this can simply be disabled from the in-game settings.

mat_forcemanagedtextureintohardware "1"

This should only be enabled if you are having stuttering problems, if you are not having problems with stuttering, then keep this disabled or you may experience reduced framerates.

dsp_enhance_stereo "1"

Everyone should enable this, it's free sound quality. This sound quality is only possible by enabling this command and cannot be enabled from in-game. Note that it is not enabled by default and can only be enabled with this command.

cl_c4dynamiclight "1"

Makes the bomb light flash brighter and makes it easier to tell where exactly the bomb is planted. Note that it is not enabled by default and can only be enabled with this command.

cl_ragdoll_collide "1"

Makes it so dead bodies fall on top of each other instead of through each other. This won't affect performance much and is more realistic. Note that it is not enabled by default and can only be enabled with this command.

dsp_slow_cpu "0"

Will reduce quality of sound for a slow CPU if it is enabled. You shouldn't need to do this if you have a sound card.

snd_digital_surround "1"

Enables higher quality sound on all channels if you have a surround sound system (4 or more speakers). I will test this to see if it makes a difference on headphones.

muzzleflash_light "1"

Controls light from muzzle flashes when a weapon is fired. It can be disabled for a performance boost but will probably be much less realistic.

sv_forcepreload "1"

Forces server-side preloading which can improve performance.

cl_forcepreload "1"

Forces client-side preloading which can improve performance. For those that do not know what a client is, it is your computer.

cl_ejectbrass "1"

Controls whether the game shows ejected bullet shells. This can highly affect performance.

mat_dxlevel "90"

Controls what DirectX version the game uses to render with. Choose the version that matches the latest version your graphics card will actually support.

-------------------------------------------------------------------------------------

Contrary to what everybody thinks, the DirectX command are not just for DirectX 7, 8, 8.1, and 9:

-dxlevel 60 For use with DirectX6.0

-dxlevel 70 For use with DirectX7.0

-dxlevel 80 For use with DirectX8.0

-dxlevel 81 For use with DirectX 8.1

-dxlevel 90 For use with DirectX 9.0

-dxlevel 95 For use with DirectX9.0c

This one is the one I use. DirectX9c is actually different from DirectX9 or formally known as DirectX9.0a or DirectX 9.0b depending on the actual version.

DirectX9.0c is in fact so different from 9.0a/b that Battlefield 2 cannot even be played on either of them. But enough of my rambling.

At present I am not sure if there is a DirectX10 command as I only have Windows XP and a DX9 graphics card, though I have tried this command, which set the game to run in DX6 mode(hence how I discovered the game had such a mode).

-------------------------------------------------------------------------------------

jpeg_quality "100"

Sets picture quality to the highest. Recommended.
PostPosted: Thu Mar 05, 2009 8:41 am


Counter-Strike: Condition Zero exclusive tweaks:

Don't expect much out of these, they're fairly basic compared to the stuff for 1.6 and Source. Now, I don't have CZ but I'm guessing it can be tweaked by making a userconfig.cfg in the appropriate folder just like the other two. I am also assuming that the number must have a " mark before and after the number.

ah "1"
Toggles Auto-Help (gives player hint messages throught the game) - Setting of 1 = 'on', and 0 = 'off'.

cl_observercrosshair "1"
Set to '1' to enable crosshairs in Observer mode, '0' to disable.

dm "1"
Toggles displaying of map briefings after loading a new map - Setting of 1 = 'on', and 0 = 'off'

cl_hidefrags "0"
Toggles hiding everyone else's scores except your own - Setting of 1 = 'on', and 0 = 'off'

drawradar
This turns the radar on

fastsprites "0"
Sets the complexity of the smoke sprites for the smoke grenade - The range is 0-2, with 0 looking the most like actual smoke

hideradar
This turns the radar off

hud_centerid "0"
Toggles the centering of the auto-ID text - Setting of 1 = 'on', and 0 = 'off'

lefthand "0"
Toggles the use of holding weapons in left hand - Setting of 1 = 'on', and 0 = 'off'

listmaps
Lists the maps available on the server that the client can vote for - the server admin specifies which maps get listed by editing the mapcycle.txt file.

max_shells "300"
Sets the number of shells visible at one time (0-500)

max_smokepuffs "300"
Sets the number of smoke puffs visible at one time (0-500) nightvision
Bind this to a key to toggle the use of the night vision goggles

rate "2500"
Sets how much data/information you receive from the server that you are connected to - for a 14.4 connection, set your rate to 1500 - 33.6k connection use 3000 - 56k modem use 3500 - ISDN should be 5000 - all connections faster than that should be between 5000 and 9999 setinfo

vgui_menus "1"
Toggles the VGUI menu - Setting of 1 = 'on', and 0 = 'off' timeleft
States how much time is left on the particular map

votemap
Allows the client to vote for a particular map Server-Side Commands

These are commands for people running their own Counter-Strike server.

mp_autokick "1"
Toggles automatic team-killer banning and kicking of idle clients - Setting of 1 = 'on', and 0 = 'off'

mp_autoteambalance "1"
Toggles the forcing of clients to join teams to make it balanced - Setting of 1 = 'on', and 0 = 'off'

mp_c4timer "45"
Sets the amount of time in between C4 placement and its explosion - ranges between 15 and 90 seconds.

mp_flashlight "1"
Toggles the use of flashlights by clients - Setting of 1 = 'on', and 0 = 'off'

mp_footsteps "1"
Toggles footstep sounds - Setting of 1 = 'on', and 0 = 'off'

mp_forcechasecam "0"
Toggles the chasecam to follow teammates only - useful for LAN games - Setting of 1 = 'on', and 0 = 'off'

mp_freezetime "6"
Sets the amount of "freeze" time at the beginning of each round to buy weapons and equipment - Use a setting of '0' to disable

mp_friendlyfire "0"
Toggles friendly fire - Setting of 1 = 'on', and 0 = 'off'

mp_hostagepenalty "2"
Sets the number of hostages a player can kill before they are booted from the server - Setting this to '0' turns the function off

mp_limitteams "2"
Sets the maximum number of players that one team can have more than the other team - Use a setting of '0' to completely disable the team limiting.

mp_logmessages "1"
Toggles logging of chat messages in the log files - Setting of 1 = 'on', and 0 = 'off'

mp_mapvoteratio "0.6"
Set the ratio of players required to vote on the same map before a map will change. The default is 0.6 , which means that 60% of the players on a server must vote on the same map in order for the server to change to that map. The range is 0.0-1.0

mp_roundtime "5"
Sets the maximum amount of time for each round - ranges between 3 and 15 minutes

mp_timelimit "0"
Sets the maximum amount of time in minutes between map rotations

mp_tkpunish "1"
Toggles the forcing of a player to sit out the next round if he has just killed a teammate - Setting of 1 = 'on', and 0 = 'off'

sv_restartround "0"
Sets the amount of time before resetting the game, including frags, weapons, money, and scores - Use setting of '0' to disable these restarts.

Sorry if they weren't very helpful but these were all I could find, although I would very much appreciate it if someone could try the processor instruction tweaks I described though.

r_mmx "1"

Test this by typing "r_mmx" (without quotes) into the console and if it responds with "MMX is enabled" or something similiar, then it worked. If it responds with "unrecognized command", then it is not a usable tweak for CZ.

Also try

r_sse "1"
r_sse2 "1"

and if you have an AMD processor, try

r_3dnow "1"

If any of these work, maybe you could try some of the tweaks in the 1.6 section.

CaptainBaconMan
Vice Captain


Nialo

PostPosted: Sat Mar 06, 2010 7:06 pm


CaptainBaconMan
At present I am not sure if there is a DirectX10 command as I only have Windows XP and a DX9 graphics card, though I have tried this command, which set the game to run in DX6 mode(hence how I discovered the game had such a mode).

You're supposed to use '-dxlevel 95' if you're running DirectX 10 but I believe if you typed in '-dxlevel 100' it will set the level to 10 (since the first digit is the decimal).

Happy fragging.
 
PostPosted: Sun Mar 07, 2010 6:37 am


HOE-LI!!!!!! That's a damn shitload of tweaks. Can't wait to try them out on CS and CSS.

FPS_headhunter

4,650 Points
  • Autobiographer 200
  • Brandisher 100
  • Forum Sophomore 300
Reply
Counter-Strike

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum