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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-28-14, 06:38 PM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Looking over the stock code the veterancy level is already accounted for.

This delay is basically already coded in. The signal strength returned from the function that checks to see if sensor detected any contacts is used in a random number generator. The value of the random number is the final decider as to whether or not unit detected any contacts. If they didn't then there's a game timer that has to expire before contacts are checked again to see if they are detected.
Yep, but if I got you correctly, the sensor whose detection strenght is currently taken in account (as far as magnetic detection is concerned), is a "boosted" hydrophone, which is not affected by external visibility anyway. What I am suggesting is: as soon as the loop detects a contact, get contact's range and calculate the visual detection time of an hypothetical surfaced contact at the same range (use a small surface vessel or a surfaced submarine as reference for detectable surface factor).

if, given the current external conditions, this time is shorter than loop's detection time, and the enemy contact is surfaced: take no action (the contact has already been detected and reported by the visual sensor probably);

if visual detection time is shorter than loop's detection time, and the enemy contact is submerged: send immediate contact report;

if visual detection time is longer than loop's detection time (no matter if the contact is surfaced or submerged): calculate the detection time difference among the two sensors, and apply an additional delay equal to it;

if, finally, the contact (submerged or not) is beyond loop station's max visual range (on moonless nights or with heavy fog), apply a veterancy related random delay, taking into account the investigations needed for avoiding a fake alarm.

Is this too complicated?
__________________
_____________________
|May the Force be with you!|
...\/

Last edited by gap; 02-28-14 at 06:56 PM.
gap is offline   Reply With Quote
 

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 01:00 AM.


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.