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 05-14-13, 08:29 AM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Thank you TDW

your work is very much appreciated here, but I have a little remark (hope you don't mind)
Is there any particular reason for your new code to compare the distance changed with the fixed value of 500 m, ? I liked more the method you had described yesterday, where distance changed was compared with variable amount (see quote below), because it would have made mathematically sure that consecuitive range estimations decreased for closing targets and increased for targets moving away. Moreover, it would have made range estimations to be recalculated more often for close targets (smaller variable amount) than for far ones, which seems pretty realistic to me
By variable amount I meant the variable's value as defined in the patch file. What I've coded in does what I meant: ABS(distance before - distance now) > variable defined in patch file then recalc random distance else return old random distance. This will ensure new random distances are calculated for closing or moving away contacts.
TheDarkWraith is offline   Reply With Quote
 


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 10:08 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.