SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Less Annoying Hydrophone Hotkeys (https://www.subsim.com/radioroom/showthread.php?t=164924)

gutted 03-14-10 09:08 PM

[REL] Less Annoying Hydrophone Hotkeys
 
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:
Code:

KeyForPositive = MenuKeyManagerWrapper.Keys.End
KeyForNegative = MenuKeyManagerWrapper.Keys.Home

For the WASD crowd change it to:
Code:

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


All times are GMT -5. The time now is 03:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.