Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.90 KB | None | 0 0
  1. /*--------------------------------------------------------------------
  2. Author: nflug
  3. Edited: Kuchenplatte
  4. File: restart.sqf
  5. Erstellt: 24. Juli 2019
  6. Desc. World Restart
  7. --------------------------------------------------------------------*/
  8.  
  9.  
  10.  
  11.  
  12.  
  13. Exile_restartClient = {
  14. Savezone2 = {
  15. [] spawn {
  16. _nearObjects = nearestObjects [player,["all"],400];
  17. {
  18. _x allowDamage false;
  19. } forEach _nearObjects;
  20. };
  21. };
  22.  
  23. effrestart = {
  24. [] spawn {
  25. "dynamicblur" ppeffectenable true;
  26. "dynamicblur" ppeffectadjust [1];
  27. "dynamicblur" ppeffectcommit 1;
  28. "colorcorrections" ppeffectenable true;
  29. "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]];
  30. "colorcorrections" ppeffectcommit 0.4;
  31. "dynamicblur" ppeffectadjust [0.5];
  32. "dynamicblur" ppeffectcommit 3;
  33. 0 setovercast 0;
  34. uisleep 0.1;
  35. _xhandle = [] spawn {
  36. uisleep 1;
  37. "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]];
  38. "colorcorrections" ppeffectcommit 2;
  39. };
  40. "dynamicblur" ppeffectadjust [2];
  41. "dynamicblur" ppeffectcommit 1;
  42. "dynamicblur" ppeffectadjust [0.5];
  43. "dynamicblur" ppeffectcommit 4;
  44. uisleep 4.5;
  45. "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]];
  46. "colorcorrections" ppeffectcommit 1;
  47. "colorcorrections" ppeffectenable true;
  48. "dynamicblur" ppeffectadjust [0];
  49. "dynamicblur" ppeffectcommit 1;
  50. };
  51. };
  52.  
  53. blitze = {
  54. _center = player;
  55. _radius = 500;
  56. _objectTypes = ["HOUSE","TREES","LAMPS"];
  57. _strikeCenter = [];
  58. _currentTarget = "";
  59. SHPLightningRun = true;
  60. publicVariable "SHPLightningRun";
  61. _centerPos = [];
  62.  
  63. while {SHPLightningRun} do {
  64. uisleep random 3;
  65. _buildingStrike = false;
  66. _buildings = nearestObjects [_center, _objectTypes, _radius];
  67.  
  68. if (count _buildings > 0) Then {
  69. _buildingStrike = true;
  70. _currentTarget = _buildings call bis_Fnc_selectRandom;
  71. _currentTarget allowDamage false;
  72. _currentTargetbbr = boundingBoxReal _currentTarget;
  73. _p1 = _currentTargetbbr select 0;
  74. _p2 = _currentTargetbbr select 1;
  75. _targetHeight = abs ((_p2 select 2) - (_p1 select 2));
  76. _strikeCenter = [(getPosATL _currentTarget select 0), (getPosATL _currentTarget select 1), (getPosATL _currentTarget select 2) + _targetHeight];
  77. };
  78.  
  79. _dir = random 360;
  80. uisleep random 3;
  81. _bolt = createvehicle ["LightningBolt",_strikeCenter,[],0,"CAN_COLLIDE"];
  82. _bolt setposatl [_strikeCenter select 0,_strikeCenter select 1,(_strikeCenter select 2)+1];
  83. _bolt setdamage 1;
  84.  
  85. _light = "#lightpoint" createvehiclelocal _strikeCenter;
  86. _light setposatl [_strikeCenter select 0,_strikeCenter select 1,(_strikeCenter select 2) + 10];
  87. _light setLightDayLight true;
  88. _light setLightBrightness 300;
  89. _light setLightAmbient [0.05, 0.05, 0.1];
  90. _light setlightcolor [1, 1, 2];
  91. uisleep 0.1;
  92. _light setLightBrightness 0;
  93. uisleep (random 0.1);
  94.  
  95. _class = ["lightning1_F","lightning2_F"] call bis_Fnc_selectrandom;
  96. _lightning = _class createvehiclelocal [100,100,100];
  97. _lightning setdir _dir;
  98. _lightning setposatl [_strikeCenter select 0,_strikeCenter select 1,(_strikeCenter select 2)+1];
  99. _duration = random 15;
  100. for "_i" from 0 to _duration do {
  101. _time = time + 0.1;
  102. _light setLightBrightness (100 + random 100);
  103. waituntil {time > _time};
  104. };
  105.  
  106. deletevehicle _lightning;
  107. deletevehicle _light;
  108. if (_buildingStrike) Then {
  109. _currentTarget allowDamage false;
  110. };
  111. };
  112. };
  113.  
  114. effects = {
  115. _ggg = getpos player;
  116. _aaa = _ggg select 0;
  117. _aaa = _aaa + 600;
  118. _bbb = _ggg select 1;
  119. _ccc = _ggg select 2;
  120. _playerpos = [_aaa,_bbb,_ccc];
  121.  
  122. x53pfou8 = "land_sack_f" createvehiclelocal _playerpos;
  123. khoc3eec = 1;
  124.  
  125. _kr7g24m4 = "#particlesource" createvehiclelocal getpos x53pfou8;
  126. _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];
  127. _kr7g24m4 setparticlerandom [2, [1, 1, 30], [1, 1, 30], 0, 0, [0, 0, 0, 0.1], 0, 0];
  128. _kr7g24m4 setparticlecircle [10, [-10, -10, 20]];
  129. _kr7g24m4 setdropinterval 0.005;
  130.  
  131. _zvmo7qjt = "#particlesource" createvehiclelocal getpos x53pfou8;
  132. _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];
  133. _zvmo7qjt setparticlerandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
  134. _zvmo7qjt setdropinterval 0.002; _g0oqlf73 = "#particlesource" createvehiclelocal getpos x53pfou8;
  135.  
  136. _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];
  137. _g0oqlf73 setparticlerandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
  138. _g0oqlf73 setdropinterval 0.002; _eji3dy6u = "#particlesource" createvehiclelocal getpos x53pfou8;
  139.  
  140. _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];
  141. _eji3dy6u setparticlerandom [0, [10, 10, 15], [15, 15, 7], 0, 0, [0, 0, 0, 0], 0, 0, 360];
  142. _eji3dy6u setdropinterval 0.002;
  143.  
  144. [] spawn {
  145. playsound "earthquake_04";
  146. uisleep 5;
  147. playsound "earthquake_04";
  148. uisleep 5;
  149. playsound "earthquake_04";
  150. uisleep 5;
  151. playsound "earthquake_04";
  152. uisleep 5;
  153. playsound "earthquake_04";
  154. uisleep 5;
  155. playsound "earthquake_04";
  156. uisleep 5;
  157. playsound "earthquake_04";
  158. uisleep 5;
  159. playsound "earthquake_04";
  160. uisleep 5;
  161. };
  162.  
  163. _u49x29v8 = "#particlesource" createvehiclelocal getpos x53pfou8;
  164. _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];
  165. _u49x29v8 setparticlerandom [2, [20, 20, 20], [5, 5, 0], 0, 0, [0, 0, 0, 0.1], 0, 0];
  166. _u49x29v8 setparticlecircle [50, [-80, -80, 2.5]]; _u49x29v8 setdropinterval 0.0002;
  167.  
  168. _rauosdtt = "#lightpoint" createvehiclelocal [((getpos x53pfou8 select 0)),(getpos x53pfou8 select 1),((getpos x53pfou8 select 2)+500)];
  169. _rauosdtt setlightambient[1500, 1200, 1000];
  170. _rauosdtt setlightcolor[1500, 1200, 1000];
  171. _rauosdtt setlightbrightness 100000.0;
  172.  
  173. [] spawn {
  174. "dynamicblur" ppeffectenable true;
  175. "dynamicblur" ppeffectadjust [1];
  176. "dynamicblur" ppeffectcommit 1;
  177. "colorcorrections" ppeffectenable true;
  178. "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]];
  179. "colorcorrections" ppeffectcommit 0.4;
  180. "dynamicblur" ppeffectadjust [0.5];
  181. "dynamicblur" ppeffectcommit 3;
  182. 0 setovercast 0;
  183. uisleep 0.1;
  184.  
  185. _xhandle = []spawn {
  186. uisleep 1;
  187. "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]];
  188. "colorcorrections" ppeffectcommit 2;
  189. };
  190.  
  191. "dynamicblur" ppeffectadjust [2];
  192. "dynamicblur" ppeffectcommit 1;
  193. "dynamicblur" ppeffectadjust [0.5];
  194. "dynamicblur" ppeffectcommit 4;
  195. uisleep 4.5;
  196. "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]];
  197. "colorcorrections" ppeffectcommit 1;
  198. "colorcorrections" ppeffectenable true;
  199. "dynamicblur" ppeffectadjust [0];
  200. "dynamicblur" ppeffectcommit 1;
  201. };
  202.  
  203. player spawn {
  204. enablecamshake true;
  205. addcamshake [10, 90, 25];
  206. uisleep 90;
  207. enablecamshake false;
  208. };
  209.  
  210. if(khoc3eec > 0) then {
  211. [] spawn {
  212. uisleep 5;
  213. [] spawn {
  214. _pos = position player;
  215. _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 ];
  216. j15vt6y3 = "#particlesource" createvehiclelocal _pos;
  217. j15vt6y3 setparticleparams _o4dsiep8;
  218. j15vt6y3 setparticlerandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
  219. j15vt6y3 setparticlecircle [0.0, [0, 0, 0]];
  220. j15vt6y3 setdropinterval 0.01;
  221. };
  222. };
  223. };
  224.  
  225. _u49x29v8 setdropinterval 0.001;
  226. deletevehicle _zvmo7qjt;
  227. deletevehicle _g0oqlf73;
  228. uisleep 4.5;
  229. _t0mbc3s9 = 0;
  230.  
  231. while {_t0mbc3s9 < 100} do {
  232. _rauosdtt setlightbrightness 100.0 - _t0mbc3s9;
  233. _t0mbc3s9 = _t0mbc3s9 + 1;
  234. uisleep 0.1;
  235. };
  236.  
  237. deletevehicle _rauosdtt; uisleep 2;
  238. _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];
  239. _kr7g24m4 setdropinterval 0.01;
  240. _eji3dy6u setdropinterval 0.006;
  241. _u49x29v8 setdropinterval 0.001;
  242. uisleep 2;
  243. _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];
  244. };
  245.  
  246. showChat false;
  247. setViewDistance 3000;
  248. setObjectViewDistance 3000;
  249.  
  250.  
  251. 0 fadesound 0;
  252. 5 fadeSound 1;
  253.  
  254. playsound "neustart";
  255.  
  256. _header = "<t size='3'>The World is going down!<t/>";
  257. _slider = "The World is breaking down! Pray to God and hope you survive! &#160;&#160;&#160;The Gamemaster has crashed the Server!&#160;&#160;&#160;It was Kuchenplattes Idea :( !&#160;&#160;&#160;Our Homepage: www.acryl-gaming.de !";
  258. 0 = [parseText _header, parseText _slider] spawn BIS_fnc_AAN;
  259.  
  260. hintsilent parsetext "<t size='1.2'>Attention !!!!<br/>Oh Fuck what happend here?</t><br/><br/><t size='1.3'>ehm..Kuchen?</t>";
  261. uisleep 14;
  262. 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>";
  263. playsound "earthquake_04";
  264. uisleep 1;
  265. 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>";
  266. playsound "alarm";
  267. uisleep 1;
  268. 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>";
  269. playsound "alarm";
  270. uisleep 1;
  271. hintsilent "";
  272.  
  273. uisleep 1;
  274. cutText ["I'm getting unconscious...","Black OUT"];
  275. uisleep 3;
  276. cutText ["","Black OUT"];
  277. uisleep 3;
  278.  
  279. (uinamespace getvariable "BIS_AAN") closeDisplay 1;
  280.  
  281. [] spawn Savezone2;
  282. [] spawn blitze;
  283.  
  284. uisleep 3;
  285. cutText ["I can see some light...","Black in"];
  286. [] spawn effrestart;
  287. [1,10,false,true] spawn BIS_fnc_cinemaBorder;
  288. uisleep 10;
  289. [] spawn BIS_fnc_earthquake;
  290. uisleep 30;
  291.  
  292. [] spawn {
  293. playsound "earthquake_04";
  294. uisleep 3;
  295. playsound "earthquake_04";
  296. uisleep 3;
  297. playsound "earthquake_04";
  298. uisleep 3;
  299. playsound "earthquake_04";
  300. uisleep 3;
  301. playsound "earthquake_04";
  302. uisleep 3;
  303. playsound "earthquake_04";
  304. uisleep 3;
  305. };
  306.  
  307. player spawn {
  308. uisleep 1;
  309. enablecamshake true;
  310. addcamshake [10, 70, 25];
  311. uisleep 120;
  312. enablecamshake false;
  313. };
  314.  
  315. uisleep 15;
  316.  
  317. uisleep 15;
  318. [] spawn effects;
  319. uisleep 180;
  320. ["Abort",true,false] spawn BIS_fnc_endMission;
  321. uisleep 5;
  322. format["#kick %1",name player] remoteExec ["serverCommand",2];
  323. };
  324.  
  325. publicVariable "Exile_restartClient";
  326. [] remoteExec ["Exile_restartClient",-2];
  327.  
  328.  
  329. sleep 30;
  330.  
  331. setDate [0,0,0,23,30];
  332. 60 setwaves 1;
  333. 60 setfog 0.00;
  334. 60 setRain 1;
  335. 60 setOvercast 1;
  336. 60 setRainbow 1;
  337. 60 setWaves 1;
  338. 60 setLightnings 1;
  339. forceWeatherChange;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement