Thread: [REL] FOTRS Ultimate Project
View Single Post
Old 03-13-18, 09:03 AM   #5803
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,099
Downloads: 109
Uploads: 2


Default

Quote:
I'm not sure what you mean by a "red light condition"? You mean you can use a "command" to turn on a red light effect on the scope camera view? I had no idea a red light could be activated in such a manner.......I thought the red light effect was only for the subs interiors, automatically put into effect when the game decides its night time. It would not be controllable.
Sorry was a bit in a hurry and did not elaborate much.

In SH3 when the red light automatically turns on, an overlay TGA with alpha channel is applied at the scope so that you see the surroundings red. You can actually define what color you want, as the TGA is flat white with transparent parts where you don't want the overlay, as in the eyepiece. I believe it also works for SH4, only it was not enabled/added to the menu.ini. So if you create the overlay TGA with a translucent part over the eyepiece and set the color to black or grey, when the red light automatically switches on in the sub, your eyepiece would be darkened.

In my own GUI for SH3 the menu-ini entries for the overlay are these:

Quote:
[G26 I6]
Name=RedLight
Type=1026;Menu group
ItemID=0x26120000
ParentID=0x26000000
Pos=0,768,1024,768
Color=0xFFFFFFFF

[G26 I7]
Name=Red Mask
Type=1030;Static bmp
ItemID=0x26120005
ParentID=0x26120000
Pos=0,0,1024,768
Color=0x96000050 ;Red
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/H_redmask.tga
MatFlags=0x9
TexFmt=0x29
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote