Jump to content

Home

"Binding Keys" question


•-BLaCKouT-•

Recommended Posts

Hey dudes, I'm back with another question on binding keys :p

 

Here's what I want to do:

1. Change the player model to the green Reborn.

 

2. Change my name to BLaCKouT 1138

 

3. Change my saber colour to green.

 

Now I can bind them a key at a time (to 'G' for example) by typing:

1. \bind g model reborn/fencer

2. \bind g set name ^2BLaCKouT ^31138

3. I don't know the MP command for this one.

 

But when I try to combine the commands to one key, it doesn't work.

What would the /bind line be to do all three in one keypress?

 

Also, how can I bind the commands to one of the Function keys, eg F12? When I've tried in the past, it won't have it. :(

 

You can't say I let you get bored... ;)

Cheers in advance,

B.

Link to comment
Share on other sites

Nah :(

 

It sets the bind for the model, but after the ; it treats it as a separate command, and not as part of the bind.

 

Which is to say it instantly renames the player, but doesn't add that action into the bind.

 

The line works fine when put in as a command, just not as a bind. The damn computer's being too logical :p

 

B.

Link to comment
Share on other sites

Doesn't want that, mate :( I think that only works in SP.

 

I have got the commands bound though. I created a txt file in my ...base folder, antered the command in there as follows:

model reborn/fencer

set name ^2BLaCKouT ^31138

renamed the file as a .cfg and consoled the following:

\bind F12 exec filename.cfg

 

All I need now is the MP saber change code and I'll be sorted. :D

 

Cheers for your help so far Sam,

 

B.

Link to comment
Share on other sites

What you want to do is make a script for this in a .cfg file. In order to have spaces in your name you have to use "" which means it has to be scripted via a .cfg file. I personally use 9 different profiles with 3 different names which I have scripted via only 2 keys & 9 .cfg files. If you want to use multiple profiles, let me know & I can go into how all that works.

 

Anyways, for just a single profile here's what I would do. Go in your "base" folder, then copy & paste the "jk2mpconfig.cfg" in the "base" folder, then rename the file to "Blackout.cfg".

 

Next, you want to open the .cfg file with a text editor like Notepad or Wordpad (both of which comes with all Windows OS's), I use Wordpad myself. Select everything (ctrl & a) & delete it. Lastly, copy & paste the following in the file (yes, even the lines that begin with //).

 

model reborn/fencer

color1 3

name "^2BLaCKouT ^31138^7"

// The last line of .cfg files does not get used with all quake engine based games like JK2.

model reborn/fencer

This changes the model & skin.

 

color1 3

This sets the saber color to green.

 

name "^2BLaCKouT ^31138^7"

This changes the name. I added the ^7 at the end because it looks better on the versus screen.

 

I also recommend you color code your name differently for servers with stats (so no one else can mess up your stats); Example, instead of "^2BLaCKouT ^31138^7" you can do "^3^2BLaCKouT ^1^31138^7" & no one will know your code except for you & the admin of the server(s).

 

// The last line of .cfg files does not get used with all quake engine based games like JK2.

Self-explanitory. You can leave the last line blank but I use this with all the .cfg files (except for my personal) with Duelers Full so everyone knows not to leave anything you want to be used on the last line.

 

Also, this is just 1 line so make sure that when you put it in the .cfg file, it is 1 line only.

Link to comment
Share on other sites

I use a script

 

*crowd goes wild, screaming "OMG U F*CK1NG SCR1PT0R!!"*

 

Shhht... I use a script to change my sabercolor :) Whenever I press the key, it goes to the next sabercolor :D Handy huh!!

 

//Saber color changer
// Red
set saber0 "color1 0; set scolor vstr saber1"

//Orange
set saber1 "color1 1; set scolor vstr saber2"

//Yellow
set saber2 "color1 2; set scolor vstr saber3"

//Green
set saber3 "color1 3; set scolor vstr saber4"

//Blue
set saber4 "color1 4; set scolor vstr saber5"

//Purple
set saber5 "color1 5; set scolor vstr saber0"

set scolor vstr saber0
bind ins "vstr scolor"

 

Now you just press insert and hooray!! Your saber color changes :) I find it very amusing to change colors very fast, then your opponent is confused, whahahahaaa!! :p

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...