Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*--------------------------------------------------------------------
- Author: nflug
- Edited: Kuchenplatte
- File: restart.sqf
- Erstellt: 24. Juli 2019
- Desc. World Restart
- --------------------------------------------------------------------*/
- Exile_restartClient = {
- Savezone2 = {
- [] spawn {
- _nearObjects = nearestObjects [player,["all"],400];
- {
- _x allowDamage false;
- } forEach _nearObjects;
- };
- };
- effrestart = {
- [] spawn {
- "dynamicblur" ppeffectenable true;
- "dynamicblur" ppeffectadjust [1];
- "dynamicblur" ppeffectcommit 1;
- "colorcorrections" ppeffectenable true;
- "colorcorrections" ppeffectadjust [0.8, 15, 0, [0.5, 0.5, 0.5, 0], [0.0, 0.0, 0.6, 2],[0.3, 0.3, 0.3, 0.1]];
- "colorcorrections" ppeffectcommit 0.4;
- "dynamicblur" ppeffectadjust [0.5];
- "dynamicblur" ppeffectcommit 3;
- 0 setovercast 0;
- uisleep 0.1;
- _xhandle = [] spawn {
- uisleep 1;
- "colorcorrections" ppeffectadjust [1.0, 0.5, 0, [0.5, 0.5, 0.5, 0], [1.0, 1.0, 0.8, 0.4],[0.3, 0.3, 0.3, 0.1]];
- "colorcorrections" ppeffectcommit 2;
- };
- "dynamicblur" ppeffectadjust [2];
- "dynamicblur" ppeffectcommit 1;
- "dynamicblur" ppeffectadjust [0.5];
- "dynamicblur" ppeffectcommit 4;
- uisleep 4.5;
- "colorcorrections" ppeffectadjust [1, 1, 0, [0.5, 0.5, 0.5, 0], [1.0, 1.0, 0.8, 0.4],[0.3, 0.3, 0.3, 0.1]];
- "colorcorrections" ppeffectcommit 1;
- "colorcorrections" ppeffectenable true;
- "dynamicblur" ppeffectadjust [0];
- "dynamicblur" ppeffectcommit 1;
- };
- };
- blitze = {
- _center = player;
- _radius = 500;
- _objectTypes = ["HOUSE","TREES","LAMPS"];
- _strikeCenter = [];
- _currentTarget = "";
- SHPLightningRun = true;
- publicVariable "SHPLightningRun";
- _centerPos = [];
- while {SHPLightningRun} do {
- uisleep random 3;
- _buildingStrike = false;
- _buildings = nearestObjects [_center, _objectTypes, _radius];
- if (count _buildings > 0) Then {
- _buildingStrike = true;
- _currentTarget = _buildings call bis_Fnc_selectRandom;
- _currentTarget allowDamage false;
- _currentTargetbbr = boundingBoxReal _currentTarget;
- _p1 = _currentTargetbbr select 0;
- _p2 = _currentTargetbbr select 1;
- _targetHeight = abs ((_p2 select 2) - (_p1 select 2));
- _strikeCenter = [(getPosATL _currentTarget select 0), (getPosATL _currentTarget select 1), (getPosATL _currentTarget select 2) + _targetHeight];
- };
- _dir = random 360;
- uisleep random 3;
- _bolt = createvehicle ["LightningBolt",_strikeCenter,[],0,"CAN_COLLIDE"];
- _bolt setposatl [_strikeCenter select 0,_strikeCenter select 1,(_strikeCenter select 2)+1];
- _bolt setdamage 1;
- _light = "#lightpoint" createvehiclelocal _strikeCenter;
- _light setposatl [_strikeCenter select 0,_strikeCenter select 1,(_strikeCenter select 2) + 10];
- _light setLightDayLight true;
- _light setLightBrightness 300;
- _light setLightAmbient [0.05, 0.05, 0.1];
- _light setlightcolor [1, 1, 2];
- uisleep 0.1;
- _light setLightBrightness 0;
- uisleep (random 0.1);
- _class = ["lightning1_F","lightning2_F"] call bis_Fnc_selectrandom;
- _lightning = _class createvehiclelocal [100,100,100];
- _lightning setdir _dir;
- _lightning setposatl [_strikeCenter select 0,_strikeCenter select 1,(_strikeCenter select 2)+1];
- _duration = random 15;
- for "_i" from 0 to _duration do {
- _time = time + 0.1;
- _light setLightBrightness (100 + random 100);
- waituntil {time > _time};
- };
- deletevehicle _lightning;
- deletevehicle _light;
- if (_buildingStrike) Then {
- _currentTarget allowDamage false;
- };
- };
- };
- effects = {
- _ggg = getpos player;
- _aaa = _ggg select 0;
- _aaa = _aaa + 600;
- _bbb = _ggg select 1;
- _ccc = _ggg select 2;
- _playerpos = [_aaa,_bbb,_ccc];
- x53pfou8 = "land_sack_f" createvehiclelocal _playerpos;
- khoc3eec = 1;
- _kr7g24m4 = "#particlesource" createvehiclelocal getpos x53pfou8;
- _kr7g24m4 setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 7, 48], "", "billboard", 1, 10, [0, 0, 0], [0, 0, 0], 0, 1.275, 1, 0, [40,80], [[0.25, 0.25, 0.25, 0], [0.25, 0.25, 0.25, 0.5], [0.25, 0.25, 0.25, 0.5], [0.25, 0.25, 0.25, 0.05], [0.25, 0.25, 0.25, 0]], [0.25], 0.1, 1, "", "", x53pfou8];
- _kr7g24m4 setparticlerandom [2, [1, 1, 30], [1, 1, 30], 0, 0, [0, 0, 0, 0.1], 0, 0];
- _kr7g24m4 setparticlecircle [10, [-10, -10, 20]];
- _kr7g24m4 setdropinterval 0.005;
- _zvmo7qjt = "#particlesource" createvehiclelocal getpos x53pfou8;
- _zvmo7qjt setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 3, 48, 0], "", "billboard", 1, 20, [0, 0, 0], [0, 0, 60], 0, 1.7, 1, 0, [60,80,100], [[1, 1, 1, -10],[1, 1, 1, -7],[1, 1, 1, -4],[1, 1, 1, -0.5],[1, 1, 1, 0]], [0.05], 1, 1, "", "", x53pfou8];
- _zvmo7qjt setparticlerandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _zvmo7qjt setdropinterval 0.002; _g0oqlf73 = "#particlesource" createvehiclelocal getpos x53pfou8;
- _g0oqlf73 setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 3, 112, 0], "", "billboard", 1, 20, [0, 0, 0], [0, 0, 60], 0, 1.7, 1, 0, [60,80,100], [[1, 1, 1, 0.5],[1, 1, 1, 0]], [0.07], 1, 1, "", "", x53pfou8];
- _g0oqlf73 setparticlerandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _g0oqlf73 setdropinterval 0.002; _eji3dy6u = "#particlesource" createvehiclelocal getpos x53pfou8;
- _eji3dy6u setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 7, 48, 1], "", "billboard", 1, 25, [0, 0, 0], [0, 0, 60], 0, 1.7, 1, 0, [40,15,120], [[1, 1, 1, 0.4],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0]] , [0.5, 0.1], 1, 1, "", "", x53pfou8];
- _eji3dy6u setparticlerandom [0, [10, 10, 15], [15, 15, 7], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _eji3dy6u setdropinterval 0.002;
- [] spawn {
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- playsound "earthquake_04";
- uisleep 5;
- };
- _u49x29v8 = "#particlesource" createvehiclelocal getpos x53pfou8;
- _u49x29v8 setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 7, 48], "", "billboard", 1, 20, [0, 0, 0], [0, 0, 0], 0, 1.5, 1, 0, [50, 100], [[0.1, 0.1, 0.1, 0.5], [0.5, 0.5, 0.5, 0.5], [1, 1, 1, 0.3], [1, 1, 1, 0]], [1,0.5], 0.1, 1, "", "", x53pfou8];
- _u49x29v8 setparticlerandom [2, [20, 20, 20], [5, 5, 0], 0, 0, [0, 0, 0, 0.1], 0, 0];
- _u49x29v8 setparticlecircle [50, [-80, -80, 2.5]]; _u49x29v8 setdropinterval 0.0002;
- _rauosdtt = "#lightpoint" createvehiclelocal [((getpos x53pfou8 select 0)),(getpos x53pfou8 select 1),((getpos x53pfou8 select 2)+500)];
- _rauosdtt setlightambient[1500, 1200, 1000];
- _rauosdtt setlightcolor[1500, 1200, 1000];
- _rauosdtt setlightbrightness 100000.0;
- [] spawn {
- "dynamicblur" ppeffectenable true;
- "dynamicblur" ppeffectadjust [1];
- "dynamicblur" ppeffectcommit 1;
- "colorcorrections" ppeffectenable true;
- "colorcorrections" ppeffectadjust [0.8, 15, 0, [0.5, 0.5, 0.5, 0], [0.0, 0.0, 0.6, 2],[0.3, 0.3, 0.3, 0.1]];
- "colorcorrections" ppeffectcommit 0.4;
- "dynamicblur" ppeffectadjust [0.5];
- "dynamicblur" ppeffectcommit 3;
- 0 setovercast 0;
- uisleep 0.1;
- _xhandle = []spawn {
- uisleep 1;
- "colorcorrections" ppeffectadjust [1.0, 0.5, 0, [0.5, 0.5, 0.5, 0], [1.0, 1.0, 0.8, 0.4],[0.3, 0.3, 0.3, 0.1]];
- "colorcorrections" ppeffectcommit 2;
- };
- "dynamicblur" ppeffectadjust [2];
- "dynamicblur" ppeffectcommit 1;
- "dynamicblur" ppeffectadjust [0.5];
- "dynamicblur" ppeffectcommit 4;
- uisleep 4.5;
- "colorcorrections" ppeffectadjust [1, 1, 0, [0.5, 0.5, 0.5, 0], [1.0, 1.0, 0.8, 0.4],[0.3, 0.3, 0.3, 0.1]];
- "colorcorrections" ppeffectcommit 1;
- "colorcorrections" ppeffectenable true;
- "dynamicblur" ppeffectadjust [0];
- "dynamicblur" ppeffectcommit 1;
- };
- player spawn {
- enablecamshake true;
- addcamshake [10, 90, 25];
- uisleep 90;
- enablecamshake false;
- };
- if(khoc3eec > 0) then {
- [] spawn {
- uisleep 5;
- [] spawn {
- _pos = position player;
- _o4dsiep8 = [ ["a3\data_f\particleeffects\universal\universal", 16, 12, 8, 1], "", "billboard", 1, 4, [0,0,0], [0,0,0], 1, 0.000001, 0, 1.4, [0.05,0.05], [[0.1,0.1,0.1,1]], [0,1], 0.2, 1.2, "", "", vehicle player ];
- j15vt6y3 = "#particlesource" createvehiclelocal _pos;
- j15vt6y3 setparticleparams _o4dsiep8;
- j15vt6y3 setparticlerandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
- j15vt6y3 setparticlecircle [0.0, [0, 0, 0]];
- j15vt6y3 setdropinterval 0.01;
- };
- };
- };
- _u49x29v8 setdropinterval 0.001;
- deletevehicle _zvmo7qjt;
- deletevehicle _g0oqlf73;
- uisleep 4.5;
- _t0mbc3s9 = 0;
- while {_t0mbc3s9 < 100} do {
- _rauosdtt setlightbrightness 100.0 - _t0mbc3s9;
- _t0mbc3s9 = _t0mbc3s9 + 1;
- uisleep 0.1;
- };
- deletevehicle _rauosdtt; uisleep 2;
- _eji3dy6u setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 7, 48, 1], "", "billboard", 1, 25, [0, 0, 0], [0, 0, 45], 0, 1.7, 1, 0, [40,25,80], [[1, 1, 1, 0.2],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0]] , [0.5, 0.1], 1, 1, "", "", x53pfou8];
- _kr7g24m4 setdropinterval 0.01;
- _eji3dy6u setdropinterval 0.006;
- _u49x29v8 setdropinterval 0.001;
- uisleep 2;
- _eji3dy6u setparticleparams [["a3\data_f\particleeffects\universal\universal.p3d", 16, 7, 48, 1], "", "billboard", 1, 25, [0, 0, 0], [0, 0, 30], 0, 1.7, 1, 0, [40,25,80], [[1, 1, 1, 0.2],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0]] , [0.5, 0.1], 1, 1, "", "", x53pfou8];
- };
- showChat false;
- setViewDistance 3000;
- setObjectViewDistance 3000;
- 0 fadesound 0;
- 5 fadeSound 1;
- playsound "neustart";
- _header = "<t size='3'>The World is going down!<t/>";
- _slider = "The World is breaking down! Pray to God and hope you survive!    The Gamemaster has crashed the Server!   It was Kuchenplattes Idea :( !   Our Homepage: www.acryl-gaming.de !";
- 0 = [parseText _header, parseText _slider] spawn BIS_fnc_AAN;
- hintsilent parsetext "<t size='1.2'>Attention !!!!<br/>Oh Fuck what happend here?</t><br/><br/><t size='1.3'>ehm..Kuchen?</t>";
- uisleep 14;
- hintsilent parsetext "<t size='1.2'>Attention !!!!<br/> The World goes down in..</t><br/><br/><t size='2'>3<br/>Will you Survive?</t>";
- playsound "earthquake_04";
- uisleep 1;
- hintsilent parsetext "<t size='1.2'>Attention !!!!<br/> The World goes down in..</t><br/><br/><t size='2'>2<br/>Your Death is comming...</t>";
- playsound "alarm";
- uisleep 1;
- hintsilent parsetext "<t size='1.2'>Attention !!!!<br/> The World goes down in..</t><br/><br/><t size='2'>1<br/>Maybe you should log out?</t>";
- playsound "alarm";
- uisleep 1;
- hintsilent "";
- uisleep 1;
- cutText ["I'm getting unconscious...","Black OUT"];
- uisleep 3;
- cutText ["","Black OUT"];
- uisleep 3;
- (uinamespace getvariable "BIS_AAN") closeDisplay 1;
- [] spawn Savezone2;
- [] spawn blitze;
- uisleep 3;
- cutText ["I can see some light...","Black in"];
- [] spawn effrestart;
- [1,10,false,true] spawn BIS_fnc_cinemaBorder;
- uisleep 10;
- [] spawn BIS_fnc_earthquake;
- uisleep 30;
- [] spawn {
- playsound "earthquake_04";
- uisleep 3;
- playsound "earthquake_04";
- uisleep 3;
- playsound "earthquake_04";
- uisleep 3;
- playsound "earthquake_04";
- uisleep 3;
- playsound "earthquake_04";
- uisleep 3;
- playsound "earthquake_04";
- uisleep 3;
- };
- player spawn {
- uisleep 1;
- enablecamshake true;
- addcamshake [10, 70, 25];
- uisleep 120;
- enablecamshake false;
- };
- uisleep 15;
- uisleep 15;
- [] spawn effects;
- uisleep 180;
- ["Abort",true,false] spawn BIS_fnc_endMission;
- uisleep 5;
- format["#kick %1",name player] remoteExec ["serverCommand",2];
- };
- publicVariable "Exile_restartClient";
- [] remoteExec ["Exile_restartClient",-2];
- sleep 30;
- setDate [0,0,0,23,30];
- 60 setwaves 1;
- 60 setfog 0.00;
- 60 setRain 1;
- 60 setOvercast 1;
- 60 setRainbow 1;
- 60 setWaves 1;
- 60 setLightnings 1;
- forceWeatherChange;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement