mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Update object_roadFlare.sqf
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
|
private ["_type", "_flare", "_lightArea", "_lightSpark", "_color"];
|
||||||
|
|
||||||
_flare = _this select 0;
|
_flare = _this select 0;
|
||||||
_type = _this select 1;
|
_type = _this select 1;
|
||||||
//_sfx = objNull;
|
|
||||||
if (!isNull _flare) then {
|
if (!isNull _flare) then {
|
||||||
switch (_type) do {
|
if (_type == 0) then {
|
||||||
case 0: {
|
|
||||||
//_isLocal = local _flare;
|
|
||||||
//Area Light
|
//Area Light
|
||||||
_lightArea = "#lightpoint" createVehicleLocal (getPosATL _flare);
|
_lightArea = "#lightpoint" createVehicleLocal (getPosATL _flare);
|
||||||
_lightArea setLightColor [0.5,0,0]; //[0.1,0.005,0.005];
|
_lightArea setLightColor [0.5,0,0]; //[0.1,0.005,0.005];
|
||||||
@@ -21,13 +21,11 @@ if (!isNull _flare) then {
|
|||||||
|
|
||||||
while {alive _flare} do {
|
while {alive _flare} do {
|
||||||
_lightArea setLightAmbient [((random 0.2) + 0.2),0.01,0.01];
|
_lightArea setLightAmbient [((random 0.2) + 0.2),0.01,0.01];
|
||||||
//_lightArea setLightColor [((random 0.1) + 0.1),0.005,0.005];
|
|
||||||
uiSleep (random 0.1);
|
uiSleep (random 0.1);
|
||||||
};
|
};
|
||||||
deleteVehicle _lightArea;
|
deleteVehicle _lightArea;
|
||||||
deleteVehicle _lightSpark;
|
deleteVehicle _lightSpark;
|
||||||
};
|
} else {
|
||||||
case 1: {
|
|
||||||
//Spark Light
|
//Spark Light
|
||||||
_color = getArray(configFile >> "cfgAmmo" >> (typeOf _flare) >> "lightColor");
|
_color = getArray(configFile >> "cfgAmmo" >> (typeOf _flare) >> "lightColor");
|
||||||
_lightSpark = "#lightpoint" createVehicleLocal (getPosATL _flare);
|
_lightSpark = "#lightpoint" createVehicleLocal (getPosATL _flare);
|
||||||
@@ -39,4 +37,3 @@ if (!isNull _flare) then {
|
|||||||
deleteVehicle _lightSpark;
|
deleteVehicle _lightSpark;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user