mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
light intensity from object: handle campfires
This commit is contained in:
parent
88a5519465
commit
d1b8595c0e
@ -96,6 +96,14 @@ if (_lightSource isKindOf "CAManBase") then {
|
||||
|
||||
} forEach _lights;
|
||||
|
||||
// handle campfires
|
||||
if (inflamed _lightSource) then {
|
||||
private "_distance";
|
||||
_distance = _unitPos distance position _lightSource;
|
||||
|
||||
_lightLevel = _lightLevel max linearConversion [0, 30, _distance, 0.5, 0, true];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
_lightLevel
|
||||
|
Loading…
Reference in New Issue
Block a user