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:
@ -96,6 +96,14 @@ if (_lightSource isKindOf "CAManBase") then {
|
|||||||
|
|
||||||
} forEach _lights;
|
} 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
|
_lightLevel
|
||||||
|
Reference in New Issue
Block a user