mostly working
This commit is contained in:
@@ -33,8 +33,9 @@ _light_emp setLightAttenuation [5,1,1,1,5,1000];
|
||||
_brit = 0;
|
||||
|
||||
|
||||
private _explSoundData = GVAR(sound_electric_explsion_impact_large);
|
||||
// local only, last param
|
||||
playSound3D [QGVAR(sound_electric_explsion_impact_large), nil, false, _origin, 1, 1, 3500, 0, true];
|
||||
playSound3D [_explSoundData get "filename", nil, false, _origin, _explSoundData get "volume", _explSoundData get "pitch", 3500, 0, true];
|
||||
|
||||
[_light_emp, _brit, _ripple2] spawn {
|
||||
params ["_light_emp", "_brit", "_ripple2"];
|
||||
@@ -67,19 +68,16 @@ playSound3D [QGVAR(sound_electric_explsion_impact_large), nil, false, _origin, 1
|
||||
_ripple setParticleParams [["\A3\data_f\ParticleEffects\Universal\Refract.p3d",1,0,1], "", "Billboard", 1, 1.5, [0, 0, 1], [0, 0, 0],0,10,7.9,0, [0,500], [[1, 1, 1, 1], [1, 1, 1, 1]], [0.05], 1, 0, "", "", objNull];
|
||||
_ripple setDropInterval 10;
|
||||
|
||||
[{deleteVehicle _this}, _ripple, GVAR(maxBrightDelay) + 0.65] call CBA_fnc_waitAndExecute;
|
||||
[{deleteVehicle _this}, _ripple, 0.65] call CBA_fnc_waitAndExecute;
|
||||
|
||||
[{
|
||||
params [
|
||||
["_toDelete", [], [[]]],
|
||||
["_toProcess", [], [[]]]
|
||||
];
|
||||
params ["_e_static2", "_e_static3", "_brit", "_light_emp", "_wave"];
|
||||
{
|
||||
deleteVehicle _x;
|
||||
} forEach _toDelete;
|
||||
} forEach [_e_static2, _e_static3];
|
||||
|
||||
_toProcess spawn {
|
||||
params ["_brit", "_light_emp", "_wave"];
|
||||
[_light_emp, _brit, _wave] spawn {
|
||||
params ["_light_emp", "_brit", "_wave"];
|
||||
while {_brit > 0} do {
|
||||
_light_emp setLightBrightness _brit;
|
||||
_brit = _brit-2;
|
||||
@@ -88,7 +86,7 @@ playSound3D [QGVAR(sound_electric_explsion_impact_large), nil, false, _origin, 1
|
||||
deleteVehicle _light_emp;
|
||||
deleteVehicle _wave;
|
||||
};
|
||||
}, [[_e_static2, _e_static3], [6.5, _light_emp, _wave]], GVAR(maxBrightDelay) + 0.85] call CBA_fnc_waitAndExecute;
|
||||
}, [[_e_static2, _e_static3, 6.5, _light_emp, _wave]], 0.85] call CBA_fnc_waitAndExecute;
|
||||
}, [_origin, _light_emp], GVAR(maxBrightDelay)] call CBA_fnc_waitAndExecute;
|
||||
|
||||
|
||||
@@ -96,7 +94,8 @@ playSound3D [QGVAR(sound_electric_explsion_impact_large), nil, false, _origin, 1
|
||||
|
||||
[{
|
||||
params ["_origin"];
|
||||
_echosound = selectRandom [QGVAR(sound_ecou),QGVAR(sound_echo3)];
|
||||
private _echosound = selectRandom (keys GVAR(echoSounds));
|
||||
private _echoSoundData = GVAR(echoSounds) get _echosound;
|
||||
// local only, last param
|
||||
playSound3d [_echosound, nil, false, _origin, 1, 1, 4000, 0, true];
|
||||
playSound3D [_echoSoundData get "filename", nil, false, _origin, _echoSoundData get "volume", _echoSoundData get "pitch", 4000, 0, true];
|
||||
}, [_origin], GVAR(maxBrightDelay) + 0.65 + 2] call CBA_fnc_waitAndExecute;
|
||||
Reference in New Issue
Block a user