Need help with CFG'ing

D€vIL²

Newbie
Joined
Nov 18, 2004
Messages
899
Reaction score
0
I made a CFG file (autoexec) and i guess this isnt a big deal but I want to be able to go into half-life 2 without having to go to console and typing sv_cheats 1 to get it to work.

also I want to have it so when I go into HL2 the ammo count for the magnum is 200, now I know the command would be sk_max_357 200 but when I just type it into the CFG as is it doesn't work, plus I want cl_ragdoll_collide 1

please help
 
also a suggestion for this:

alias +slow "fadeout;fadein;host_timescale .4;phys_pushscale 5;sv_gravity 500"
alias -slow "fadeout;fadein;host_timescale 1;phys_pushscale 1;sv_gravity 600"
bind mouse2 +slow

when I do this and go into the game it only fades in how can I do this, (hopefully you see what Im trying to do)
 
As an example, here is how mine is set up with autoexec.cfg and userconfig.cfg. Hopefully it will give you what you need.

I have Autoexec for game settings:
-------------- autoexec.cfg --------------------------------------------
sensitivity "6"
jpeg_quality 100 // 100% quality screenshots that you take
sv_cheats 1 // Enables cheats - required by zoom script

// Performance settings

snd_mixahead "0.7" // Reduces audio stuttering
sv_autosave "0" // Disables autosaves at start of level

sv_forcepreload "1" // Preloads game assets at start of level
cl_forcepreload "1" // Preloads game assets at start of level
mat_forcemanagedtextureintohardware "0" // stuttering "fix" disabled

cl_smooth "0" // Disables client-side smoothing
cl_ragdoll_collide "1" // Enables collision detection between ragdoll models
r_lod "-2" // slight increase in image quality without decrease in framerate
fps_max "170" // set this to multiples of your monitor's refresh rate for optimal framerate, i.e. 85, 85x2, 85x3

// Note that for the command snd_mixahead, there is no "ideal" value.
// Different setups work best with different values. The most common ones are 0.4, 0.5, and 0.7

violence_ablood 1 // If set to 1 shows alien blood when they are hit. Disabling this can improve performance but reduce realism.
violence_agibs 1 // If set to 1 shows alien gore when they are hit. Disabling this can improve performance but reduce realism.
violence_hblood 1 // If set to 1 shows human blood when they are hit. Disabling this can improve performance but reduce realism.
violence_hgibs 1 // If set to 1 shows human gore when they are hit. Disabling this can improve performance but reduce realism.

cl_ejectbrass 1 // If set to 1, weapons eject shells as they fire. If set to 0 they don't, which can improve performance especially during heavy combat.
cl_show_bloodspray 1 // If set to 1, blood sprays are emitted from bullet impacts on characters
// If set to 0, no blood sprays are shown, however blood marks (decals) can still appear.
// Disabling this can improve performance, but reduces realism.
cl_show_splashes 1 // If set to 1, splashes in water are shown. This can improve performance if disabled at the cost of realism.

//cl_showfps "1"

exec userconfig.cfg //executes userconfig.cfg

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

userconfig.cfg contains my aliases and binds. In this case, it's just a big config for taking nice pics in game.

------------ userconfig.cfg ----------------------------------------------
// 4est's Photo config.
// If you don't have an autoexec config, use notepad to create one and place it in the "cfg" folder.
// C:\Program Files\Steam\SteamApps\[email protected]\half-life 2\hl2\cfg
// Be sure to place the following three commands in your autoexec.cfg and remove the first two "//" from each line.

//jpeg_quality 100 // 100% quality screenshots that you take
//sv_cheats 1 // Enables cheats - required by zoom script
//exec userconfig.cfg // Executes the userconfig.cfg file

// If you don't have one already, create a userconfig.cfg file in the "cfg" folder, same as above.
//-------- Put the following in your userconfig.cfg --------

// Following is a snapshot toggle which removes the HEV hud and the x-hairs.
// It's good for action shots where you would expect to see a weapon.

alias snapon "cl_drawhud 0; bind mouse3 snapoff"
alias snapoff "cl_drawhud 1; r_drawviewmodel 1; bind mouse3 snapon"
bind mouse3 snapon

// Below is a photography toggle which removes the HEV hud, x-hairs and weapon model.
// It is designed for taking "photos" when no living enemy is around.

alias photo "cl_drawhud 0; r_drawviewmodel 0; bind kp_minus noto"
alias noto "cl_drawhud 1; r_drawviewmodel 1; bind kp_minus photo"
bind kp_minus photo

// This toggle removes only the X-hairs

//alias nohair "crosshair 0; bind kp_plus xhair"
//alias xhair "crosshair 1; bind kp_plus nohair"
//bind kp_plus nohair

// This toggle is for Black and White jpegs

alias BWon "mat_hsv 1; bind mouse3 BWoff"
alias BWoff "mat_hsv 0; bind mouse3 BWpon"
bind kp_plus BWon

bind mouse4 jpeg // bind to take jpegs


// The following is a modified version of "Korons TFC Zoom version 2".
// It is used for some zooming, composition and wide-angle shots.
// Unfortunately, game wide-angle is not the same as a real wide-angle lens.
// It seems HL2 requires "sv_cheats 1" in the autoexec.cfg for this to work.

alias inmore "zoom50"
alias outmore "zoom0"
alias inall "zoom1"
alias outall "zoom0"
alias resetz "alias inmore zoom50;alias outmore outall"

alias sio0 "fov 0;alias sio zoom0;resetz"
alias sio50 "fov 0;alias sio zoom50;resetz"
alias sio40 "fov 0;alias sio zoom40;resetz"
alias sio30 "fov 0;alias sio zoom30;resetz"
alias sio20 "fov 0;alias sio zoom20;resetz"
alias sio10 "fov 0;alias sio zoom10;resetz"
alias sio9 "fov 0;alias sio zoom9;resetz"
alias sio8 "fov 0;alias sio zoom8;resetz"
alias sio7 "fov 0;alias sio zoom7;resetz"
alias sio6 "fov 0;alias sio zoom6;resetz"
alias sio5 "fov 0;alias sio zoom5;resetz"
alias sio4 "fov 0;alias sio zoom4;resetz"
alias sio3 "fov 0;alias sio zoom3;resetz"
alias sio2 "fov 0;alias sio zoom2;resetz"
alias sio1 "fov 0;alias sio zoom1;resetz"

alias zoom0 "alias inmore zoom50;alias outmore outall;fov 0;alias sio sio0"
alias zoom50 "alias inmore zoom40;alias outmore zoom0;fov 130;alias sio sio50"
alias zoom40 "alias inmore zoom30;alias outmore zoom50;fov 120;alias sio sio40"
alias zoom30 "alias inmore zoom20;alias outmore zoom40;fov 110;alias sio sio30"
alias zoom20 "alias inmore zoom10;alias outmore zoom30;fov 100;alias sio sio20"
alias zoom10 "alias inmore zoom9;alias outmore zoom20;fov 90;alias sio sio10"
alias zoom9 "alias inmore zoom8;alias outmore zoom10;fov 80;alias sio sio9"
alias zoom8 "alias inmore zoom7;alias outmore zoom9;fov 70;alias sio sio8"
alias zoom7 "alias inmore zoom6;alias outmore zoom8;fov 60;alias sio sio7"
alias zoom6 "alias inmore zoom5;alias outmore zoom7;fov 50;alias sio sio6"
alias zoom5 "alias inmore zoom4;alias outmore zoom6;fov 40;alias sio sio5"
alias zoom4 "alias inmore zoom3;alias outmore zoom5;fov 30;alias sio sio4"
alias zoom3 "alias inmore zoom2;alias outmore zoom4;fov 20;alias sio sio3"
alias zoom2 "alias inmore zoom1;alias outmore zoom3;fov 10;alias sio sio2"
alias zoom1 "alias inmore inall;alias outmore zoom2;fov 5;alias sio sio1"


// Clicking n zooms all the way out, click again to go to last zoomed position.
// I never really use the buttons, just the mouse wheel.

bind n "sio"
bind m "inall"
bind , "inmore"
bind . "outmore"
bind / "outall"

// This alias toggles the mouse wheel to be used as either a weapon selector or a zoom

alias zon "bind MWHEELUP inmore; bind MWHEELDOWN outmore; bind kp_enter zoff"
alias zoff "bind MWHEELUP invprev; bind MWHEELDOWN invnext; bind kp_enter zon"
bind "kp_enter" "zon"

// default field of view

bind "kp_ins" "fov 75"
------------------------------------------------------------------------

In regard to your last post, I'm not exactly sure what you are wanting. I think you want the screen to fade out and fade back in BOTH when you press mouse2 and when you release it. If so, you will have to use a LOT of wait commands. Otherwise, the command fadein is getting executed a fraction of a second after it has started to fadeout. Thus, you never see it fadeout.

I think you want something similar to:

alias medwait "wait; wait; wait; wait"
alias longwait "medwait; medwait; medwait; medwait"

alias +slow "fadeout; longwait; longwait; fadein;host_timescale .4;phys_pushscale 5;sv_gravity 500"
alias -slow "fadeout; longwait; longwait; fadein;host_timescale 1;phys_pushscale 1;sv_gravity 600"
bind mouse2 +slow


If you want mouse2 to act as a toggle, you could use:

alias medwait "wait; wait; wait; wait"
alias longwait "medwait; medwait; medwait; medwait"

alias slow "fadeout; longwait; longwait; fadein;host_timescale .4;phys_pushscale 5;sv_gravity 500; bind mouse2 fast"
alias fast "fadeout; longwait; longwait; fadein;host_timescale 1;phys_pushscale 1;sv_gravity 600; bind mouse2 slow"

bind mouse2 slow


I have not tested the amount of wait commands needed for this to work seemlessly. You will probably have to adjust it some.
 
Back
Top