Jump to content

Customizing/Binding: Difference between revisions

m
no edit summary
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
Below you will find all possible keys for Oni and how they should be bound.
Below you will find all possible keys for Oni and how they should be bound.


Keys


Up Arrow - uparrow
{|border="1" cellpadding="5" cellspacing="0" align="center"
Down Arrow - downarrow
|+Key names
Left Arrow - leftarrow
!Key description
Right Arrow - rightarrow
!Syntax
 
|-
Number Pad x - numpadx (where x is a number from 0 to 9)
|Up/Down/Left/Right Arrow
Number Pad * - multiply
|uparrow, downarrow, leftarrow, righarrow
Number Pad / - divide
|-
Number Pad = - numpadequals
|Num Pad #<br>(where # is a number from 0 to 9)
Number Pad + - add
|numpad#
Number Pad - - subtract
|-
Number Pad Delete - decimal
|Num Pad * / + -
Number Pad Enter - numpadenter
|multiply, divide, add, substract
 
|-
Page Up - pageup
|Num Pad =
Page Down - pagedown
|numpadequals
Home - home
|-
End - end
|Num Pad Delete
Number Lock - numlock
|decimal
 
|-
, - comma
|Num Pad Enter
. - period
|numpadenter
' - apostrophe
|-
; - semicolon
|Page Up/DOwn
] - rightbracket
|pageup, pagedown
[ - leftbracket
|-
/ - slash
|Home
\ - backslash
|home
 
|-
Tab - tab
|End
Backspace - backspace
|end
Enter - enter
|-
Shift - shift/leftshift/rightshift
|Num Lock
Caps Lock - capslock
|numlock
Control - control/leftcontrol/rightcontrol
|-
Command - command (Macintosh only)
|,
Option - option (Macintosh only)
|comma
Alt - alt
|-
Space - space
|.
Fkey x - fkeyx (where x is the Fkey* number)
|period
 
|-
* - Fkey: i.e. F1, F2, .. .. F13, etc.
|'
 
|apostrophe
A-Z - a-z (all letters lowercase)
|-
 
|;
0-9 - 0-9
|semicolon
|-
|]
|rightbracket
|-
|[
|leftbracket
|-
|/
|slash
|-
|\
|backslash
|-
|Tab
|tab
|-
|Backspace
|backspace
|-
|Enter
|enter
|-
|Shift
|shift/leftshift/rightshift
|-
|Caps Lock
|capslock
|-
|Control
|control/leftcontrol/rightcontrol
|-
|Command (Macintosh only)
|command
|-
|Option (Macintosh only)
|option
|-
|Alt
|alt
|-
|Space
|space
|-
|F# (with #= 1, 2, 3...)
|fkey#
|-
|A-Z
|a-z (LOWERCASE!)
|-
|0-9
|0-9
|}


Bindable events are :
Bindable events are :
{|
|+Bindable events
!Event description
!Syntax
|-
|Forward
|forward
|-
|Left
|stepleft
|-
|Backward
|backward
|-
|Right
|right
|-
|weapon/holster/pick up)
|swap
|-
|Drop weapon
|drop
|-
|Jump
|jump
|-
|Punch
|punch
|-
|Kick
|kick
|-
|Crouch
|crouch
|-
|Walk
|walk
|-
|Hypo
|hypo
|-Reload
|reload
|}
This is ''very'' incomplete. Filling in slowly...
==How to bind (from [http://oni.bungie.org/information/binding.html OniCentral])==
When you want to add your own controls, make sure you do it underneath the heading "unbindall" and above "# default controls" in "key_config.txt".


Forward - forward
You can delete binds from "# default controls", but make sure the bind is in the "unbindall" area. Edit the controls in "# misc" freely.
Left - stepleft
Backward - backward
Right - right
Swap - swap (take out weapon/holster/pick up)
Drop - drop (drop weapon)
Jump - jump
Punch - punch
Kick - kick
Crouch - crouch
Walk - walk
Hypo - hypo
Reload - reload
 
How to bind
 
When you want to add your own controls, make sure you do it underneath the heading "unbindall" and above "# default controls" in "key_config.txt". You can delete binds from "# default controls", but make sure the bind is in the "unbindall" area. Edit the controls in "# misc" freely.


The bind command is structured the following way:
The bind command is structured the following way:
 
bind *key* to *action*
bind *key* to *action*


So if you would want to bind "kick" to / you would type:
So if you would want to bind "kick" to / you would type:
bind slash to kick


bind slash to kick
N.B. Keys that can't be changed are '''F8''' (shapeshifter) and '''Esc'''.
 
Related scripting issue [[lock_keys]]


Keys that can't be changed are '''F8''' (shapeshifter) and '''Esc'''.
==Related issues==
*the [[lock_keys|<tt>lock_keys</tt>]] scripting command.