Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_wind","_wind2","_pos3","_pos4","_streu","_lifetime","_newsdrop","_newsstreu","_obj","_density","_colorCoef","_newspapers","_pos","_velocity","_relPos","_color","_alpha","_ps","_newsParams","_newsRandom","_newsCircle","_newsInterval","_times","_herald","_tribune","_result"];
- if (!(isDedicated)) then {
- _obj = _this select 0;
- _density = _this select 1;
- if (_density < 0) then {_density = 0.07};
- _colorCoef = _this select 2;
- if (_colorCoef < 0) then {_density = 1};
- _newspapers = _this select 3;
- _wind = _this select 4;
- if (_wind > 10) then {_wind = 10};
- if (_wind < -10) then {_wind = -10};
- _wind2 = _this select 5;
- _pos3 = _this select 6;
- _pos4 = _this select 7;
- _pos = position _obj;
- _alpha = _this select 8;
- _streu = _this select 9;
- _lifetime = _this select 10;
- _newsdrop = _this select 11;
- _newsstreu = _this select 12;
- _duration = _pos3;
- _velocity = [_wind,_wind2,0];
- _relPos = [-((_velocity select 1) * (_duration / 2)), _pos4, -6];
- _color = [1.0 * _colorCoef, 0.9 * _colorCoef, 0.8 * _colorCoef];
- _ps = "#particlesource" createVehicleLocal _pos;
- _ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 8, 0], "", "Billboard", 1, _duration, _relPos, _velocity, 1, 1.275, 1, 0, [5], [_color + [0], _color + [_alpha], _color + [0]], [1000], 1, 0, "", "", _obj];
- _ps setParticleRandom [_lifetime, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.05], 0, 0];
- _ps setParticleCircle [_streu, [0, 0, 0]];
- _ps setDropInterval _density;
- _result = if (_newspapers) then {
- _newsParams = [["\ca\Missions_PMC\gnews1.p3d", 1, 0, 1], "", "SpaceObject", 1, 5, [0, 0, 1], [_wind,_wind2,0], 1, 1.25, 1, 0.2, [0,1,1,1,0], [[1,1,1,1]], [0.7], 1, 0, "", "", _obj];
- _newsRandom = [0, [30, 30, 0], [5, 5, 0], 2, 0.3, [0, 0, 0, 0], 10, 0];
- _newsCircle = [_newsstreu, [0, 1, 0]];
- _newsInterval = _newsdrop;
- _times = "#particlesource" createVehicleLocal _pos;
- _times setParticleParams _newsParams;
- _times setParticleRandom _newsRandom;
- _times setParticleCircle _newsCircle;
- _times setDropInterval _newsInterval;
- _newsParams set [0,["\ca\Missions_PMC\gnews2.p3d", 1, 0, 1]];
- _herald = "#particlesource" createVehicleLocal _pos;
- _herald setParticleParams _newsParams;
- _herald setParticleRandom _newsRandom;
- _herald setParticleCircle _newsCircle;
- _herald setDropInterval _newsInterval;
- _newsParams set [0,["\ca\Missions_PMC\gnews3.p3d", 1, 0, 1]];
- _tribune = "#particlesource" createVehicleLocal _pos;
- _tribune setParticleParams _newsParams;
- _tribune setParticleRandom _newsRandom;
- _tribune setParticleCircle _newsCircle;
- _tribune setDropInterval _newsInterval;
- [_ps,_times,_herald,_tribune]
- } else {[_ps]};
- _result
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement