-TWC| Forum
Basic 01 - Simple binds - Printable Version

+- -TWC| Forum (https://board.twcclan.org)
+-- Forum: Public (https://board.twcclan.org/forum-13.html)
+--- Forum: Tutorials (https://board.twcclan.org/forum-15.html)
+---- Forum: How to make a cfg? (https://board.twcclan.org/forum-58.html)
+---- Thread: Basic 01 - Simple binds (/thread-18.html)



Basic 01 - Simple binds - John - 21-02-2012

Basic 02 - Advanced binds 1

Since this is you're first tutorial on making a CFG you should know how to save it:

First you open a textfile with notepad or notepad++
Then you make you're cfg (explained how to in the following tutorials) and save it as name.cfg in your etmain of your wolfenstein installation.
name can be any name you want to.
Wolfenstein automaticly executes the following file: autoexec.cfg so saving it as autoexec.cfg in your etmain is a good thing to do: You don't have to execute your cfg on startup.

Now to create a very simple cfg with 2 binds you need to write the following in the .cfg file

bind key say "Text"
bind means its a bind (duh)
key you need to bind a key to use it, most of the cfg users use their F-keys to bind stuff to
say "Text" this says Text, say will just shout out everything between the 2 "s

to say Hi! when you press F3 you should have this in your cfg:

autoexec.cfg
Code:
bind F3 say "Hi!"

Thanks for reading the first part on how to make a cfg!

All keys:
Code:
Alphabet: A-Z Numbers: 0-9 Function keys: F1-F12 Punctuation: -[]/'.,;~= SPACE, TAB, SHIFT, CTRL, ALT, ENTER, BACKSPACE, PAUSE Arrow keys: UPARROW, DOWNARROW, LEFTARROW, RIGHTARROW INS, HOME, PGUP, DEL, END, PGDN Numeric keypad: KP_HOME, KP_SLASH, *, KP_MINUS, KP_UPARROW, KP_DOWNARROW, KP_LEFTARROW, KP_RIGHTARROW, KP_PGUP, KP_5, KP_PLUS, KP_ENTER, KP_END, KP_PGDN, KP_INS, KP_DEL Mouse buttons: Left mouse button: MOUSE1 Right mouse button: MOUSE2 Middle mouse button: MOUSE3 More mouse buttons: MOUSE4/MOUSE5 (some mice have extra buttons) Mousewheel scroll up: MWHEELUP Mousewheel scroll down: MWHEELDOWN



RE: Basic 01 - Simple binds - yvoms - 21-11-2012

is numpad also compatible with keybinds


RE: Basic 01 - Simple binds - John - 21-11-2012

John Wrote:
Code:
Numeric keypad: KP_HOME, KP_SLASH, *, KP_MINUS, KP_UPARROW, KP_DOWNARROW, KP_LEFTARROW, KP_RIGHTARROW, KP_PGUP, KP_5, KP_PLUS, KP_ENTER, KP_END, KP_PGDN, KP_INS, KP_DEL



RE: Basic 01 - Simple binds - yvoms - 21-11-2012

Thanks Smile