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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-21-17, 09:35 AM   #3
Stiebler
Fuel Supplier
 
Stiebler's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 1,237
Downloads: 29
Uploads: 4


Default

@Areo16:

The specific intercept that I use is in the code beginning at SH3Collisions.act+02e70. Register ebx points to the active unit.

This is particularly useful, in that:
a) only scripted units (including the player's unit) pass through this code. Randomly-generated units and land units have their own code. This saves a lot of computation.
b) The SH3Collisions.act code is mostly activated only when other units are sufficiently close to the U-boat that a collision (eg with a bomb or shell) might occur.

Thus scripted aircraft can only make my new code active when they are close to the U-boat, but before the U-boat is seen, and before a radar-warning given. Then, in poor visibility, the hit-points at float[ebx+00B8] are set to zero and [ebx+00D0] is also set to zero, which kills further movement of the aircraft.

But note how useful this is: if there are many scripted aircraft flying nearby, only those sufficiently close to the U-boat will be eliminated. The others will continue to fly their scripted routes even in bad weather, so they remain still a threat to the U-boat when visibility becomes better.

I have also revised my plan stated above to provide multiple scripts at 7-day intervals for periods of months in area north-west of Spain. As just stated, most of the scripted aircraft will survive poor visibility anyway, because the U-boat is not near. Moreover - I forgot earlier - most U-boat patrols will be of at least six weeks' duration. Therefore it is only necessary to provide scripts, not for every seven days, but for every six weeks - and at 2-3 month intervals when the air cover was present, but weaker, in the same area.

Stiebler.
Stiebler 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 11:23 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.