![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
|
|
Thread Tools | Display Modes |
03-24-14, 04:51 PM
|
#11 | |
|
Black Magic
![]() |
Quote:
Mine has an error also that I just found out when current light = 0.5 Thus I came up with a new algorithm: - if game reports back it's daytime: -- compare game's nighttime value (0.283) to start of nighttime value (0.5) - I do this comparison because it's possible someone may screw up and assign the start of nighttime value <= 0.283 since it's a variable in the patch file -- if greater than or equal then jump to end of function -- if less than then subtract game's nighttime value (0.283) from start of nighttime (0.5) - result is 0.217 -- take current light value (say it's 0.385) and subtract game's nighttime value (0.283) - result is 0.102 -- divide 0.102 by 0.217 - result is 0.47 -- subtract 0.47 from 1.0 - result is 0.53 -- multiply 0.53 by game's nighttime multiplier for player's crew (3.0) - result is 1.59 -- if result above > 1.0 then subtract 1.0 from result above - result is 0.59 -- load derived minimum signal strength into XMM0 and XMM1 (let's say it's 0.1) -- multiply XMM1 by 0.59 - XMM1 = 0.059 -- add XMM1 to XMM0 - XMM0 = 0.159 - this is the new minimum derived signal strength |
|
|
|
|
|
