Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Coding a cfg

From HalfLife 2 Knowledge Base

Jump to: navigation, search

This was made by Mastersrp. Do not say that you did ALL the work yourself Tutorials:

Coding a cfg.


1. First open the cfg folder in hl2. (or hl2dm)

2. then you´ll copy/paste a cfg. Rename the cfg to the name you wanna exec.

3. Then open the cfg using Notepad. commands is :

echo = Any comment in console

// = make a comment. does not affect the other commands

bind = "<Key>" "<Command>"

alias = "<OnCommand>" "<DoCommand>"

Then save it all


Getting the controls into the game

1. Go into the script folder in hl2 (or hl2dm) and open it. inside it you will find a file named "kp_act". open it using notepad. it will look like this.

in the space between "blank" and "something" press tab 3 times

"blank" "=========================="

"blank" "Valve_Movement_Title"

"blank" "=========================="

"+forward" "Valve_Forward_Title"

And a lot more.

IMPORTANT !!!

in the space between "a_cfg_command" and "any name of the command you want" 4 tabs.

IMPORTANT !!!

create a new line so it will look like this:

"blank" "=========================="

"blank" "You title here"

"blank" "=========================="

"a_cfg_command" "Any name of the command you want"

"blank" "=========================="

"blank" "Valve_Movement_Title"

"blank" "=========================="

"+forward" "Valve_Forward_Title"

usefull commands can be found in the commands section.

No download will ever appear. sorry, but i think you shouldn´t try stealing my stuff but discover some unique features. NOTE: This was all made in Half-life 2: Episode One. So coding in all episodes will be the same allways :D

Personal tools