Variables

The general catch-all forum for Action Quake2 related discussions.

Moderator: Moderators

Post Reply
n99
"Sticks and Stones..."
Posts: 882
Joined: Sat Jun 05, 2004 6:41 pm
Location: nl

Variables

Post 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.
stan0x
killed itself
Posts: 407
Joined: Sun Aug 29, 2004 4:17 pm
In-game Name: stan0x
Location: Netherlands
Operating System: Windows 7, linux
Processor model/speed: i7 2600K
Memory: 16GB DRR3
Hard drive: 1 x 240GB SSD 5 x 2 TB
Graphics card: GTX470
Monitor: LG
Mouse: MX
Keyboard: Steelseries G7
Location: nl

Post 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 ?
#clan.fubar #narf #heks #aq2world
n99
"Sticks and Stones..."
Posts: 882
Joined: Sat Jun 05, 2004 6:41 pm
Location: nl

Post by n99 »

yeah something like that, is that what Blue Vex gave you? :P
Post Reply