gvse 10 Posted December 20, 2012 Hi guys, Has anybody come up with parameters that change the color of flashlight light from white to red to reduce the blinding effect while using NV? I have searched the forum but no joy. I have also looked into the values myself but I don't even know in what system they are coded (cmyk, rgba?) Here's the default code: class FlashLight { color[] = {0.9, 0.9, 0.7, 0.9}; ambient[] = {0.1, 0.1, 0.1, 1.0}; position = "flash dir"; direction = "flash"; angle = 30; scale[] = {1, 1, 0.5}; brightness = 0.1; }; If anybody has any ideas please share them. Thank you! Share this post Link to post Share on other sites
Baraka 10 Posted December 20, 2012 Hi GvsE, It´s a wild guess: try color[] = {1.0, 0.1, 0.1, 0.9}; orcolor[] = {1.0, 0.0, 0.0, 0.9}; the first 3 Numbers should be rgb with red as first parameter. The 4. may be the strenght or something with white? Share this post Link to post Share on other sites
gvse 10 Posted December 20, 2012 (edited) Right on the money! :D Thank you sir! The light is red now, but still a bit too intense. Decreasing brightness to e.g. "0.02" does nothing (at least I see no difference). I have also been wondering what the values in the "scale" parameter control: cannot find any explanation on the wiki page. Ambient seems to control the "corona" of the beam of light and left at default values it adds a whitish hue. Anyways, the point now is to decrease brightness / intensity to make the flashlight more NV friendly. If you have any tips, do let me know! Edited December 20, 2012 by GvsE Share this post Link to post Share on other sites
Harzach 2517 Posted December 20, 2012 Anyways, the point now is to decrease brightness / intensity to make the flashlight more NV friendly. If you have any tips, do let me know! Keep in mind that the RGB values are intensity values for those individual colors. Full red would be [1.0, 0.0, 0.0], while a darker (dimmer) red would be [0.3, 0.0, 0.0], for example. Share this post Link to post Share on other sites
gvse 10 Posted December 21, 2012 Thank you for the feedback Harzach! Here's the code for the flashlight with red light. I don't know if it just me or if it's actually less blinding than white light while using NV (perhaps it's an engine limitation?). Definitely the red light is more subtle for night operations, and Ive been told that's what they use in the military. Do let me know if you see room for improvement! class FlashLight { color[] = {0.3, 0.1, 0.1, 0.7}; ambient[] = {0.1, 0.0, 0.0, 1.0}; position = "flash dir"; direction = "flash"; angle = 30; scale[] = {1, 1, 0.5}; brightness = 0.02; }; Share this post Link to post Share on other sites
cry 2 Posted December 27, 2012 Do the other MP-Player see the red flashlight too? Share this post Link to post Share on other sites
gvse 10 Posted December 28, 2012 they should. after all the code is inserted in the addon's config so anyone using the same addon should see the same effect. Share this post Link to post Share on other sites