Scripting/cfg guide?

  • Thread starter Thread starter f00ge
  • Start date Start date
F

f00ge

Guest
Hello,

I'm an UT/UT2004 player.
In UT, you have the config files, called *.ini files, where you, basically, can tweak, alter, bind, script etc etc.

Of course, HL2 doesn't have the same ini file system. But I'm sure (hopefully) that a lot of things are tweakable, not to mention binds etc in HL2.

Is there a guide to newbie and advanced config (cgf'ing?) guide/FAQ out there that I can use to learn more - and start tweaking?

Thanks,
 
Oh, I should add, I only play HL2: DM online.
So, if some tweaks are considered cheats online, I wish to stay clear off those.
 
Funny that you're asking, I'm teaching my friend how to make some SIMPLE scripts for CS: S.. But anyway, here are the basics:

bind key "command" (with the ")
alias aliasname "command; command; command" (with the ")

A simple example of this would be a script that would say something silly to your console and then actually say it in the game...

alias funny "echo I see ghosts; wait; say I see ghosts"
bind k "funny"

If I now pressed k, I would see "I see ghosts" in my console and a millisecond afterwards I would say it in game.

There are many many many many commands ingame which you can add in a script, I don't know them from my head, sorry.

Anyway, you save a script in a .cfg file (NOT a .cfg.txt), so you should use something that can save in that filetype (Notepad).

You can execute (activate, so to say) a script in HL2 by opening up the console and typing exec scriptname (with scriptname being the name of the file, no need to add the .cfg extention)

Hope I helped, if you need more information... Be sure to reply ;)
 
You can tweak the config files in:

..\half-life 2 deathmatch\hl2mp\cfg

(HL2 uses .cfg files instead of .ini which actually makes more sense...)

The amount of tweaks you can do in HL/HL2 and the mods etc is so very large that it just is not possible to list it in a forum unless you are specific about what you are looking for.

Your best bet would be to google it or make your questions more specific.
 
OK, thanks.
I know I can't get ppl to list ALL there is to script. :)
But is there a website that lists much of it, perhaps?

My first question would be: How do I change the FOV to 90 - and will it work online..
 
Funny that FOV is considered a cheat yet I can run 16:9 widescreen easy as pie on my 4:3 CRT. :\
oh well.
 
my cfg

alias +slow "host_timescale .4;phys_pushscale 5;sv_gravity 500"
alias -slow "host_timescale 1;phys_pushscale 1;sv_gravity 600"
bind mouse2 +slow
bind "p" "npc_create npc_zombie"
bind "o" "npc_create_equipment weapon_smg1; wait; npc_create npc_combine_s"
bind "i" "npc_create_equipment weapon_smg1; wait; npc_create npc_citizen"
bind "m" "ai_disable"
bind "v" "impulse 101"
bind "l" "npc_create npc_crow"
bind "k" "npc_create npc_pigeon"
 
can someone help me with this command idea:

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

the problem with this is when i press mouse2 it only fades in, when i want it to fade out and in one after another, like im trying to do here.
whats wrong, do I need to add a wait in here somewhere?
 
bassman61588 said:
can someone help me with this command idea:

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

the problem with this is when i press mouse2 it only fades in, when i want it to fade out and in one after another, like im trying to do here.
whats wrong, do I need to add a wait in here somewhere?

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