Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_killername","_display","_body","_playerID","_array","_source","_method","_canHitFree","_isBandit","_punishment","_humanityHit","_myKills","_humanity","_kills","_killsV","_myGroup"];
- disableSerialization;
- if (deathHandled) exitWith {};
- deathHandled = true;
- if ((alive player) && {isNil {dayz_playerName}}) then {
- dayz_playerName = name player;
- };
- _display = findDisplay 49;
- if(!isNull _display) then {_display closeDisplay 0;};
- if (dialog) then {closeDialog 0;};
- if (visibleMap) then {openMap false;};
- _body = player;
- _killerName = _body getVariable["AttackedByName", "nil"];
- _playerID = [player] call FNC_GetPlayerUID;
- disableUserInput true;
- _infected = 0;
- if (r_player_infected && DZE_PlayerZed) then {
- _infected = 1;
- };
- ["<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;
- 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;
- _body spawn {
- "colorCorrections" ppEffectEnable true;"
- colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1], [1, 1, 1, 0.0]];
- "colorCorrections" ppEffectCommit 0;
- "dynamicBlur" ppEffectEnable true;
- "dynamicBlur" ppEffectAdjust [2];
- "dynamicBlur" ppEffectCommit 0;
- showCinemaBorder true;
- camUseNVG false;
- cam_view = "camera" camCreate [(getPosATL _this select 0), (getPosATL _this select 1),(getPosATL _this select 2)+4];
- cam_view cameraEffect ["internal","back"];
- cam_view camSetFOV 2;
- cam_view camSetTarget (vehicle _this);
- cam_view camCommit 0;
- waitUntil {camCommitted cam_view};
- uisleep 1;
- cam_view camSetTarget [(getPosATL _this select 0), (getPosATL _this select 1),(getPosATL _this select 2)+400];
- cam_view camSetRelPos [0,5,0];
- cam_view camCommit 80;
- };
- PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected, dayz_playerName];
- publicVariableServer "PVDZE_plr_Died";
- _id = [player,20,true,getPosATL player] call player_alertZombies;
- uiSleep 0.5;
- player setDamage 1;
- 0.1 fadeSound 0;
- player setVariable ["NORRN_unconscious", false, true];
- player setVariable ["unconsciousTime", 0, true];
- player setVariable ["USEC_isCardiac",false,true];
- player setVariable ["medForceUpdate",true,true];
- player setVariable ["startcombattimer", 0];
- r_player_unconscious = false;
- r_player_cardiac = false;
- autoRunActive = 0;
- _array = _this;
- if (count _array > 0) then {
- _source = _array select 0;
- _method = _array select 1;
- if ((!isNull _source) && (_source != player)) then {
- _canHitFree = player getVariable ["freeTarget",false];
- _isBandit = (player getVariable["humanity",0]) <= -2000;
- _punishment = _canHitFree || _isBandit;
- _humanityHit = 0;
- if (!_punishment) then {
- _myKills = ((player getVariable ["humanKills",0]) / 30) * 1000;
- _humanityHit = -(2000 - _myKills);
- _kills = _source getVariable ["humanKills",0];
- _source setVariable ["humanKills",(_kills + 1),true];
- PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]];
- publicVariableServer "PVDZE_send";
- } else {
- _killsV = _source getVariable ["banditKills",0];
- _source setVariable ["banditKills",(_killsV + 1),true];
- };
- };
- _body setVariable ["deathType",_method,true];
- };
- terminate dayz_musicH;
- terminate dayz_slowCheck;
- terminate dayz_animalCheck;
- terminate dayz_monitor1;
- terminate dayz_medicalH;
- terminate dayz_gui;
- r_player_dead = true;
- "dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [4]; "dynamicBlur" ppEffectCommit 0.2;
- "colorCorrections" ppEffectEnable true;
- "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.01], [1, 1, 1, 0.0]];
- "colorCorrections" ppEffectCommit 1;
- 3 fadeSound 0;
- uiSleep 1;
- dayz_originalPlayer enableSimulation true;
- addSwitchableUnit dayz_originalPlayer;
- setPlayable dayz_originalPlayer;
- selectPlayer dayz_originalPlayer;
- 3 cutRsc ["default", "PLAIN",3];
- 4 cutRsc ["default", "PLAIN",3];
- _body setVariable["combattimeout", 0, true];
- uiSleep 2;
- 1 cutRsc ["DeathScreen","BLACK OUT",3];
- playMusic "dayz_track_death_1";
- "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
- "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 5;
- uiSleep 2;
- for "_x" from 5 to 1 step -1 do {
- titleText [format[localize "str_return_lobby", _x], "PLAIN DOWN", 1];
- uiSleep 1;
- };
- PVDZE_Server_Simulation = [_body, false];
- publicVariableServer "PVDZE_Server_Simulation";
- endMission "END1";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement