Log in

View Full Version : [REL] Less Annoying Hydrophone Hotkeys


gutted
03-14-10, 09:08 PM
Since i use a heavily modified WASD style controls. and because the mousewheel turns the hydrophone so slow....I got tired of moving my hand all the way over to the Home/End keys to rotate it.

I had looked around the commands.cfg to change it but they aren't there.

They are in the hydrophone script.

Open up SilentHunter5\data\Scripts\Stations\Hydrophone.py in notpead

A few lines down from the top you'll see this:

KeyForPositive = MenuKeyManagerWrapper.Keys.End
KeyForNegative = MenuKeyManagerWrapper.Keys.Home
For the WASD crowd change it to:

KeyForPositive = MenuKeyManagerWrapper.Keys.D
KeyForNegative = MenuKeyManagerWrapper.Keys.A
Now when you walk to the hydrophone station and activate it, you dont have to move your hand at all to rotate it.

I didn't provide as a mod, because not everyone is using the WASD controls now. If you use other style controls, change it to however you want.

It would be in your best interest to make a mod out of it yourself so you can revert (noobs see next post).

enjoy

gutted
03-14-10, 09:15 PM
JSGME mod creation for dummies:

1. Navigate to your MODS folder.
2. Create a folder named "MyHydrophoneKeys"
3. Navigate into that folder and create a folder named "data"
4. Navigate into that "data" folder and create a folder named "scripts"
5. Navigate into that "scripts" folder and create a folder named "stations"

You should now have a "Silent Hunter 5\Mods\MyHydrophoneKeys\data\scripts\stations\" folder

Copy your "Silent Hunter 5\data\scripts\stations\Hydrophone.py" file to the "stations" folder you created above.

6. Open up the COPIED hydrophone.py file and change the keys.
7. Launch JSGME and apply the mod