View Single Post
Old 03-24-14, 07:51 PM   #3037
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

You have to see the code to understand. It works perfectly and is linear throughout the whole range.

Here are the variables for the searchlights and the player's crew and other units visual sensor signal strength varied by available sunlight (they are located in the SHSim patch file):

[SECTION 1]
...
;
; +0x0 = nighttime value for searchlights active - 0.4
Code3=0x40,CDCCCC3E
;
; +0x0 = the start of nighttime value for other units - 0.5
; +0x4 is the nighttime multiplier addition for other units - 1.0
Code4=0x48,0000003F0000803F
;
; +0x0 = the start of nighttime value for player's unit - 0.6
; +0x4 = the nighttime multiplier addition for player's unit - 2.5
Code5=0x50,9A99193F00002040

If you adjust any of the variables then you need to run the Generic Patcher app again and ensure to open the SHSim patch file so it can be updated with your changes.

v1.0.158.0 released. See post #1

Starting with v1.0.158.0 added 3 new patches to the SHSim.act file: searchlights active at dusk when they have a contact, Player's unit visual sensor affected by available light, and Units visual sensor affected by available light (does not affect player's unit)
TheDarkWraith is offline   Reply With Quote