Page 1 of 1

Variables

Posted: Mon Nov 15, 2004 6:13 pm
by n99
Can anyone give me a short instruction how to employ variables in .cfg files? I've seen some people that use it, and I would like to know how u can initiate a variable, and change it. This might really make alot of my scripts work better, or at least easier to tweak later on.

Posted: Tue Nov 16, 2004 8:54 am
by stan0x
// mijn config

bind ctrl "+shift"
set button1 "mouse1"
set button2 "mouse2"
set button3 "mouse3"



//Button #1

set b1_func1 "+attack"
set b1_func2 "use Throwing Combat Knife;set sensitivity 3.5"

//button #2

set b2_func1 "+moveup"
set b2_func2 "use M26 Fragmentation Grenade"

//button #3

set b3_func1 "use MK23 Pistol"
set b3_func2 "use dual mk23 pistols"



alias +shift "bind $button1 $b1_func2 ; bind $button2 $b2_func2 ; bind $button3 $b3_func2"
alias -shift "bind $button1 $b1_func1 ; bind $button2 $b2_func1 ; bind $button3 $b3_func1"

somthing like this n99 ?

Posted: Tue Nov 16, 2004 12:52 pm
by n99
yeah something like that, is that what Blue Vex gave you? :P