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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-02-12, 02:02 PM   #1
Husksubsky
XO
 
Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
Default

Good points Vanilla.
Thx for answer Rongel, I will keep testing but it s hard to keep track of whats happening sometimes.

I m still curious wether that getcontactdepth means your just as visible to the game as if you were surfaced when above 15 m. doesn t look that way since they stop shooting with peri down but anyways I WANT them to shoot if they spot me but I DONT want them to spot me like if I m surfaced when I sneak silent under the surface .
Husksubsky is offline   Reply With Quote
Old 02-02-12, 02:23 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Husksubsky View Post
Good points Vanilla.
Thx for answer Rongel, I will keep testing but it s hard to keep track of whats happening sometimes.

I m still curious wether that getcontactdepth means your just as visible to the game as if you were surfaced when above 15 m. doesn t look that way since they stop shooting with peri down but anyways I WANT them to shoot if they spot me but I DONT want them to spot me like if I m surfaced when I sneak silent under the surface .
GetContactDepth only returns the depth of the contact and nothing more.
TheDarkWraith is offline   Reply With Quote
Old 02-02-12, 04:26 PM   #3
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Thanks for the info Vanilla!

Glad to hear that they actually fired cannons at submerged subs! Otherwise this would have been somewhat pointless in the first place!

Quote:
I m still curious wether that getcontactdepth means your just as visible to the game as if you were surfaced when above 15 m. doesn t look that way since they stop shooting with peri down but anyways I WANT them to shoot if they spot me but I DONT want them to spot me like if I m surfaced when I sneak silent under the surface .
Quote:
GetContactDepth only returns the depth of the contact and nothing more.
Yep, it doesn't mean that they can automaticly spot you if you are above 15 meters. If they have spotted you with sensors and you are above 15 meters, only then they can fire at you. So you can still sneak silently in periscope depth and they won't spot you.

Been messing with the scripts like crazy (yes, I'm a bit obsessed by this...) but no significant progress. However, I noticed one thing! When you are in periscope depth, and the periscope is up, and they have spotted you and started firing, do not lower the scope, but just dive to safety. Now when you pass the 15 meter line, enemies will see it and know that you are too deep to attack with cannons. This way even DD's will instantly stop firing you.

I'll try to explain it with example... If you just lower the scope when you are attacked with cannons in periscope depth, escorts lose your contact and continue firing the area several minutes. They think that you still might be there even if you are 100 meters below. But if you dive with periscope up (with -15 depth value it has to be all way up) they see you as you pass the magical line and understand to stop. Ofcourse this is not a perfect way either, you are basically helping the escorts by telling them your depth!

So close....
Rongel is offline   Reply With Quote
Old 02-02-12, 05:59 PM   #4
pedrobas
Seasoned Skipper
 
Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
Default

pedrobas is offline   Reply With Quote
Old 02-02-12, 10:59 PM   #5
Husksubsky
XO
 
Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
Default

I m a bit obsessed too. Thx a lot TDW for clearing that out. (Not that you didn t know Rongel) Finally even I understand how this works a bit more...I think..
I really hated this issue with SH4 and was sad to see it still existed in SH5. They still cant hurt you much at 15 + so I miss those guns Vanilla talked about. Ive heard that depthcharges usully had a preset at 30 60 or 90 meters can that be true? anyways they should have guns to take you out with at shallow depth. Or run fast over you so they would be at somewhat safe distance when the depthcharges explode..(if they could explode above 30 m)anyways I cant think that a sub in reallife would survive long in PD with destroyers present.were supposed to dive away arent we?

Before I play more with the numbers. out of what you say I conclude that
ContactPresenceIs(PRESENCE_SENSORS, 15) . tells the guns to fire if GetContactDepth tells you are above 15.

I stick to visual spot for now.
If they spot my scope when I m at 16 they won t open fire. why not put them both to 17? I can t think of any downsides to it except they started to fire at me even before my scope was above the surface in your testmod.
That means I was spotted but can not tell now wich sensor did it. When I scout I try to keep my scope just above the surface and for short periods. I m still a bit scared that these are the things we mess with to some degree. that it s not how high your scope actually is but how deep you are with scope fully raised. Or have the sensors their own scripts and these shipweapons scripts that you change only come in use if you ALREADY have been spotted.

Sorry for all these qustions but I m very curios

Last edited by Husksubsky; 02-02-12 at 11:09 PM.
Husksubsky is offline   Reply With Quote
Old 02-03-12, 06:14 AM   #6
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by Husksubsky View Post
...
Ive heard that depthcharges usully had a preset at 30 60 or 90 meters can that be true? anyways they should have guns to take you out with at shallow depth. Or run fast over you so they would be at somewhat safe distance when the depthcharges explode..(if they could explode above 30 m)anyways I cant think that a sub in reallife would survive long in PD with destroyers present.were supposed to dive away arent we?
...
Even with a DC set at 30m it can still heavily damage the sub, at shallow depths the explosion expands much further, since the pressure is way lower then down below, and I have read somewhere that the most deadly explosions were the ones just below the sub, don't exactly remember why, though.
There is a nice example of a PD sinking with DCs here: http://www.uboatarchive.net/U-432INT.htm see chapter IV there, note that the sub was at 20m and DCs were set at 34m. So you are absolutely right to say that staying at PD while detected is suicidal. I think a destroyer would use everything available: guns, ramming, DCs, hedgehog and what not (throwing Bertrand overboard? Hygiene tanks flushing?) seeing a sub at shallow depth and with up-scope. Very deadly for the sub unless it timely manages to escape to depth.
Vanilla is offline   Reply With Quote
Old 02-03-12, 07:00 AM   #7
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
Originally Posted by Husksubsky View Post

Before I play more with the numbers. out of what you say I conclude that
ContactPresenceIs(PRESENCE_SENSORS, 15) . tells the guns to fire if GetContactDepth tells you are above 15.
The "15" in ContactPresenceIs(PRESENCE_SENSORS, 15) is just a default value to make the condition true (it's defined in the ship.aix file). You could probably use "1" as well.

Good way to test the ships behaviour is to have the map contacts on and have the visual sensor data activated in nav map settings. That way you can see if you are in enemy's visual area, passive sonar area, or active sonar area (pinging).

In my tests I have noticed that you won't get any damage from cannons if you are deeper than 20 meters or so. It's a issue with the cannon shell damage and would need modding in that area. Also when you are underwater you rarely get any actual hull damage from guns (and DC's). The water is lowering the damage radically (too much in my opinion!).

So even if get the ships to fire at you when you are 30 meters below for example, the shells couldn't damage you.

But I would be happy if the enemies would fire you when you are in periscope depth and acted logically enough. I have witnessed too many times situations where I'm circling in the middle of the unescorted convoy and have periscope up, and even the armed merchants just zigzag slowly around me, sailors pointing at my direction but too lazy to open fire. Right now it's already working with the merchants, they will shoot you and force you down.
Rongel is offline   Reply With Quote
Old 02-03-12, 11:08 PM   #8
Husksubsky
XO
 
Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
Default

thx for the link Vanilla.
Hygiene tanks flushing lool
Thx for additional info ROngel
I will do as you say in my tests. weird I didn t think about that. Still I think..why not put getcontactdepth to -20? any reason to have them stop firing?
Husksubsky is offline   Reply With Quote
Reply

Tags
attack, cannons, periscope

Thread Tools
Display Modes

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 09:42 PM.


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