Team Camarilla International Official Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Team Camarilla International Official Forum

This is the official forum for Team Camarilla International: The Bloodlines Developers
 
HomeSearchLatest imagesRegisterLog in

 

 Keybindings and alias functions

Go down 
3 posters
AuthorMessage
Childe of Malkav
Beyond Caine
Beyond Caine
Childe of Malkav


Posts : 5204
Join date : 2009-11-05
Location : Gone for Good

Keybindings and alias functions Empty
PostSubject: Keybindings and alias functions   Keybindings and alias functions EmptyFri May 13, 2011 8:31 pm

I think this might be interesting for people who want to make their personal game controls a bit more fitting. For example, I prefer having the character movements on the arrow keys. But then you are very far away from the hotkeys. So I used the bind commands in config.cfg to set the hotkeys to the number pad as well.
Of course most keys and commands can be set in the options menue. But some, like the camera commands, and the hotkeys cannot.
Simple keybindings are set in config.cfg
Alias functions are functions that bind more than one simple command to a key. Examples for aliases are the toggle walk/run, and the auto walk function. they are set in autoexec.cfg
You can find both files in the folder -bloodlines\vampire\cfg\ Both are simple textfiles that can be edited with any text editor you like.

A keybind sets one command to one key:
bind "SPACE" "pause" for example binds the pause function to the spacebar,
bind "k" "showhotkeys" binds the hotkey menue to k, while
bind "1" "vhotkey #1" binds the actual hotkey #1 to the 1 key.

With alias functions you can set more than one command to one single key.
The toggle walk/run for example looks like this:
alias run "-speed;bind SHIFT walk"
alias walk "+speed;bind SHIFT run"
bind SHIFT walk

Now what does this mean? The last command (bind SHIFT walk) makes sure that after starting the game, the first time you press the shift key, the alias function walk will be executed. This will first call +speed (makes the character walking instead of the usual running), and then it binds the alias run to the SHIFT key.
run does the opposite, making the character running again, and then it rebinds SHIFT to walk.

Similar to this one, I have made a function that allows me to look behind me and then forward again, by pressing the BACKSPACE key:
alias lookback "cam_yaw 180;bind BACKSPACE lookforward"
alias lookforward "cam_yaw 0;bind BACKSPACE lookback"
bind BACKSPACE lookback

It is also possible to make more complex functions. Instead of a simple backwards view, you could make the character "looking over the shoulders"
alias look120 "cam_yaw 120;bind BACKSPACE look240"
alias look240 "cam_yaw 240;bind BACKSPACE look0"
alias look0 "cam_yaw 0;bind BACKSPACE look120"
bind BACKSPACE look120

I think, it is also possible to make an alias that binds more than one function to be executed on one key, but atm I can't think of an interesting application for that, so I haven't tested this yet.

- geek
Back to top Go down
everett
Fledgling
Fledgling



Posts : 19
Join date : 2011-06-11

Keybindings and alias functions Empty
PostSubject: Re: Keybindings and alias functions   Keybindings and alias functions EmptyTue Jun 14, 2011 10:24 am

how it would be the binding of the disciplines to the Funciotn keys ?

For example :

F5 celerity
F6 fortitude
F7 ecc ecc

Or more cool , is possible to implement the hotkeys and the disciplines that the player have ?
Back to top Go down
Shabutaro
Methuselah
Methuselah
Shabutaro


Posts : 416
Join date : 2010-09-18
Location : Germany

Keybindings and alias functions Empty
PostSubject: Re: Keybindings and alias functions   Keybindings and alias functions EmptyTue Jun 14, 2011 11:55 am

Quote :
bind "k" "showhotkeys" binds the hotkey menue to k, while
bind "1" "vhotkey #1" binds the actual hotkey #1 to the 1 key.

So if you want them on the F Keys, you have to choose them on the hotkey menu on place 5 celerity, 6 fort, 7 etc... Than you write in your config:
bind "f1" "vhotkey #1"
bind "f2" "vhotkey #2"
bind "f3" "vhotkey #3"
bind "f4" "vhotkey #4"
bind "f5" "vhotkey #5"
bind "f6" "vhotkey #6"
bind "f7" "vhotkey #7"
bind "f8" "vhotkey #8"

That should be pretty much it for a simple solution.

For the other question i don't really know..
Back to top Go down
everett
Fledgling
Fledgling



Posts : 19
Join date : 2011-06-11

Keybindings and alias functions Empty
PostSubject: Re: Keybindings and alias functions   Keybindings and alias functions EmptyTue Jun 14, 2011 11:58 am

Ok , this i understood and i thank you.

But normally in the hotkey menu don't appear the list of disciplines , no ?
Back to top Go down
Childe of Malkav
Beyond Caine
Beyond Caine
Childe of Malkav


Posts : 5204
Join date : 2009-11-05
Location : Gone for Good

Keybindings and alias functions Empty
PostSubject: Re: Keybindings and alias functions   Keybindings and alias functions EmptyTue Jun 14, 2011 2:19 pm

First of all, you have to use capital F, like F1 to link anything to a function key, lower case letters are used for the normal keys.
Then, using the hotkey menue (k), allows you to link any weapon, including the fists for unarmed combat, any discipline you have at that time, or any type of bloodbag to a hotkey.
I'm not aware of any option to directly bind a discipline to a key. Afaik, the only available commands for disciplines are:
-vdisciplineprev, vdisciplinenext to toggle through the list of available disciplines
-vdisciplinelast to activate the selected discipline
-vdisciplineendall to end all active disciplines

It would be worth a try to see if you can select a specific discipline and level, but you'd have to edit the keybindings for every new character, and then you're stuck to that character until you edit the cfg files again.

- geek
Back to top Go down
Sponsored content





Keybindings and alias functions Empty
PostSubject: Re: Keybindings and alias functions   Keybindings and alias functions Empty

Back to top Go down
 
Keybindings and alias functions
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Team Camarilla International Official Forum :: Team Camarilla International Forum :: Modding Tips-
Jump to: