Modding the camera movement keys

Imperial Glory mods, modding tools and more!

Moderator: TAFN staff

Post Reply
ShellShock
Soldier
Posts: 5
Joined: Sat May 21, 2005 9:49 am
Location: UK

Modding the camera movement keys

Post by ShellShock »

These are the files to change if you want to mod the keys used to move the camera:

Game\UI\ModeloBatalla\UIDefs_CtrlMovCamara.sb
Game\UI\ModeloGestion\UI_ModeloGestion.sb
Game\UI\ModeloNaval\UIDefs_CtrlMovCamara.sb
Teclas\Standard\ModeloBatalla\UIDefs_HotKeyBatalla.sb
Teclas\Standard\ModeloNaval\TeclasUINaval.sb

Where:
Batalla - land battle camera
Gestion - campaign map camera
Naval - naval battle camera

In each file search for the existing key binding, e.g., KEY_UP, KEY_LEFT, and replace it with the binding you want, e.g., to change the camera rotation keys for land battles, in Game\UI\ModeloBatalla\UIDefs_CtrlMovCamara.sb change

[ .TIPO UIC_TECLA .ID 'K_PR' .PARAMS [ .TECLA KEY_LEFT .MKEYS [ ] .EVENTOS [ KEY_DOWN KEY_UP ] ] ]
[ .TIPO UIC_TECLA .ID 'K_NE' .PARAMS [ .TECLA KEY_RIGHT .MKEYS [ ] .EVENTOS [ KEY_DOWN KEY_UP ] ] ]


to

[ .TIPO UIC_TECLA .ID 'K_PR' .PARAMS [ .TECLA KEY_Q .MKEYS [ ] .EVENTOS [ KEY_DOWN KEY_UP ] ] ]
[ .TIPO UIC_TECLA .ID 'K_NE' .PARAMS [ .TECLA KEY_E .MKEYS [ ] .EVENTOS [ KEY_DOWN KEY_UP ] ] ]


This makes Q & E rotate the camera, which fits in with the WASD camera movement keys (you now use your left hand to move and rotate the camera).

Do not confuse the KEY_UP key bindings with the "[ KEY_DOWN KEY_UP ]" event - the KEY_UP here does not mean the up cursor key, but the action of a key being pressed and then released.
Post Reply