ACE3/addons/common/functions/fnc_ambientBrightness.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

19 lines
424 B
Plaintext

/*
* Author: commy2, idea by Falke
* Returns a brightness value depending on the sun and moon state. Ranges from 0 to 1 (dark ... bright).
*
* Arguments:
* None
*
* Return Value:
* Ambient brightness <NUMBER>
*
* Example:
* [] call ace_common_fnc_ambientBrightness
*
* Public: Yes
*/
#include "script_component.hpp"
(sunOrMoon * sunOrMoon * (1 - overcast * 0.25) + (moonIntensity / 5) * (1 - overcast)) min 1