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-17-14, 02:01 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Working on the coastal defenses and noticed that my new code that forces units to use their radio doesn't work for the coastal defenses because one of their pointers is null (DamageEffects pointer). Thus I'm revising this bit of code so that if this pointer is null it will say the unit has a radio (thus can receive/transmit). This will be in upcoming new version of Generic Patcher.

Somehow I totally overlooked something in the existing game code that 'gives' the new contact detected by a unit to other units The existing game code only 'gives' the unit detected to other units that:
1) do not currently have a contact
2) is a type of destroyer

#2 above is the kicker I overlooked! I wondered why sometimes when an enemy aircraft was near but heading away from me and a ship unit detected me the aircraft never came and investigated. Now I know why I'm going to change the existing game code so that ANY unit can receive the new contact if it has no contact currently. The patch for this will be placed in the Experimental category until it's tested by many for any ill effects. Once it has been verified to give no ill effects I'll move it out of the Experimental category.
TheDarkWraith 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 02:03 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.