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, 06:16 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
Didn't see anything in SHCollisions.act or SH5.exe that says once unit takes damage from something then lock onto that unit. The game engine is pretty simple in how it determines the unit a unit is tracking/engaging:
- derive list of active game units (some units can be excluded from this list)
- iterate over list of active game units derived:
-- iterate over all sensors of the current unit
--- iterate over all active game units derived for each sensor to see if sensor detects it
--- if sensor detects it then add to list of detected units

Check all detected units to see which one was detected the 'strongest'. Place pointer to this unit in unit's contact detected 'slot'.
If an unit can detect more than one target with its sensor, how will it decide which one to attack? The closest one maybe? Any idea?
__________________
_____________________
|May the Force be with you!|
...\/
gap 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 12:39 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.