Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. private ["_killername","_display","_body","_playerID","_array","_source","_method","_canHitFree","_isBandit","_punishment","_humanityHit","_myKills","_humanity","_kills","_killsV","_myGroup"];
  2. disableSerialization;
  3. if (deathHandled) exitWith {};
  4. deathHandled = true;
  5. if ((alive player) && {isNil {dayz_playerName}}) then {
  6. dayz_playerName = name player;
  7. };
  8. _display = findDisplay 49;
  9. if(!isNull _display) then {_display closeDisplay 0;};
  10. if (dialog) then {closeDialog 0;};
  11. if (visibleMap) then {openMap false;};
  12.  
  13. _body = player;
  14. _killerName = _body getVariable["AttackedByName", "nil"];
  15. _playerID = [player] call FNC_GetPlayerUID;
  16.  
  17. disableUserInput true;
  18.  
  19. _infected = 0;
  20. if (r_player_infected && DZE_PlayerZed) then {
  21. _infected = 1;
  22. };
  23.  
  24. ["<t size='2.5' shadow ='2.6' color='#B22222'> You dead </t>",0,(safezoneY + safezoneH * 0.43),30,1,0,32] spawn bis_fnc_dynamicText;
  25. format[["<t size='0.8' color='#FFFFF0'> Killed by KillerName </t>",_killerName],0,(safezoneY + safezoneH * 0.53),30,1,0,33] spawn bis_fnc_dynamicText;
  26. _body spawn {
  27. "colorCorrections" ppEffectEnable true;"
  28. colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1], [1, 1, 1, 0.0]];
  29. "colorCorrections" ppEffectCommit 0;
  30. "dynamicBlur" ppEffectEnable true;
  31. "dynamicBlur" ppEffectAdjust [2];
  32. "dynamicBlur" ppEffectCommit 0;
  33. showCinemaBorder true;
  34. camUseNVG false;
  35. cam_view = "camera" camCreate [(getPosATL _this select 0), (getPosATL _this select 1),(getPosATL _this select 2)+4];
  36. cam_view cameraEffect ["internal","back"];
  37. cam_view camSetFOV 2;
  38. cam_view camSetTarget (vehicle _this);
  39. cam_view camCommit 0;
  40. waitUntil {camCommitted cam_view};
  41. uisleep 1;
  42. cam_view camSetTarget [(getPosATL _this select 0), (getPosATL _this select 1),(getPosATL _this select 2)+400];
  43. cam_view camSetRelPos [0,5,0];
  44. cam_view camCommit 80;
  45. };
  46.  
  47. PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected, dayz_playerName];
  48. publicVariableServer "PVDZE_plr_Died";
  49.  
  50.  
  51. _id = [player,20,true,getPosATL player] call player_alertZombies;
  52.  
  53. uiSleep 0.5;
  54.  
  55. player setDamage 1;
  56. 0.1 fadeSound 0;
  57.  
  58. player setVariable ["NORRN_unconscious", false, true];
  59. player setVariable ["unconsciousTime", 0, true];
  60. player setVariable ["USEC_isCardiac",false,true];
  61. player setVariable ["medForceUpdate",true,true];
  62. player setVariable ["startcombattimer", 0];
  63. r_player_unconscious = false;
  64. r_player_cardiac = false;
  65. autoRunActive = 0;
  66.  
  67. _array = _this;
  68. if (count _array > 0) then {
  69. _source = _array select 0;
  70. _method = _array select 1;
  71. if ((!isNull _source) && (_source != player)) then {
  72. _canHitFree = player getVariable ["freeTarget",false];
  73. _isBandit = (player getVariable["humanity",0]) <= -2000;
  74. _punishment = _canHitFree || _isBandit;
  75. _humanityHit = 0;
  76. if (!_punishment) then {
  77. _myKills = ((player getVariable ["humanKills",0]) / 30) * 1000;
  78. _humanityHit = -(2000 - _myKills);
  79. _kills = _source getVariable ["humanKills",0];
  80. _source setVariable ["humanKills",(_kills + 1),true];
  81. PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]];
  82. publicVariableServer "PVDZE_send";
  83. } else {
  84. _killsV = _source getVariable ["banditKills",0];
  85. _source setVariable ["banditKills",(_killsV + 1),true];
  86. };
  87. };
  88. _body setVariable ["deathType",_method,true];
  89. };
  90.  
  91. terminate dayz_musicH;
  92. terminate dayz_slowCheck;
  93. terminate dayz_animalCheck;
  94. terminate dayz_monitor1;
  95. terminate dayz_medicalH;
  96. terminate dayz_gui;
  97.  
  98. r_player_dead = true;
  99.  
  100. "dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [4]; "dynamicBlur" ppEffectCommit 0.2;
  101.  
  102. "colorCorrections" ppEffectEnable true;
  103. "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.01], [1, 1, 1, 0.0]];
  104. "colorCorrections" ppEffectCommit 1;
  105.  
  106. 3 fadeSound 0;
  107. uiSleep 1;
  108.  
  109. dayz_originalPlayer enableSimulation true;
  110.  
  111. addSwitchableUnit dayz_originalPlayer;
  112. setPlayable dayz_originalPlayer;
  113. selectPlayer dayz_originalPlayer;
  114.  
  115. 3 cutRsc ["default", "PLAIN",3];
  116. 4 cutRsc ["default", "PLAIN",3];
  117.  
  118. _body setVariable["combattimeout", 0, true];
  119.  
  120. uiSleep 2;
  121.  
  122. 1 cutRsc ["DeathScreen","BLACK OUT",3];
  123.  
  124. playMusic "dayz_track_death_1";
  125.  
  126. "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
  127. "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 5;
  128.  
  129. uiSleep 2;
  130.  
  131. for "_x" from 5 to 1 step -1 do {
  132. titleText [format[localize "str_return_lobby", _x], "PLAIN DOWN", 1];
  133. uiSleep 1;
  134. };
  135.  
  136. PVDZE_Server_Simulation = [_body, false];
  137. publicVariableServer "PVDZE_Server_Simulation";
  138.  
  139. endMission "END1";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement