SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-12-08, 09:13 AM   #1
meduza
Ace of the Deep
 
Join Date: Apr 2007
Location: on patrol
Posts: 1,035
Downloads: 40
Uploads: 0
Default Setting a key for going to preset depth

I'm trying to find a way to dive to a preset depth by pressing a key. For example, pressing Shift-D brings the boat at 50m.

I looked at commands.cfg and found this entry:
[Cmd190]
Name=Set_depth
Ctxt=1
Str=4427

Maybe this is the way to do it, but it's far beyond my limited modding knowledge.
Anyone knows how (and if) can it be done?
__________________

meduza is offline   Reply With Quote
Old 10-12-08, 09:40 AM   #2
irish1958
Ocean Warrior
 
Join Date: Apr 2005
Location: Carmel, Indiana
Posts: 3,250
Downloads: 320
Uploads: 11
Default

This may not work, but try this:
In the config file write:

[Cmd190]
Name=Set_depth
Ctxt=1
Str=4427
Key0=0x0D,c,"Enter"

In the menu_en file write:

;4427=New depth %.0f meters!
4427=New depth X.0f meters!
where x= the depth you want.

You can then use SetKeys to change the "enter" command to whatever key you want, or you can leave it as "enter" since this key is not used in GWX2.1.

If this works or not, please post the result.
Of course, back up the files first before you mess with them.
__________________
Irish1958
irish1958 is offline   Reply With Quote
Old 10-12-08, 11:43 AM   #3
meduza
Ace of the Deep
 
Join Date: Apr 2007
Location: on patrol
Posts: 1,035
Downloads: 40
Uploads: 0
Default

Thanks for your help, but it doesn't work.

When I press the key, boat surfaces. And when I set the depth in ordinary way, using the dial, the message "New depth 50.0f meters!" appears.
Obviously, the Set_depth is conected to the depth dial.
__________________

meduza is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:35 PM.


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