Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_item","_text","_wait","_myPos","_dir","_kills","_heroKills","_killsH","_killsB","_humanity","_pos","_display","_body","_playerID","_array","_source","_method","_canHitFree","_isBandit","_punishment","_humanityHit","_myKills","_humanity","_kills","_killsV","_myGroup","_src","_sum"];
- if (deathHandled) exitWith {};
- deathHandled = true;
- disableSerialization;
- disableUserInput true;
- _display = findDisplay 49;
- if(!isNull _display) then {_display closeDisplay 0};
- if (dialog) then {closeDialog 0};
- if (visibleMap) then {openMap false};
- _body = player;
- _playerID = getPlayerUID player;
- if (dayz_onBack != "") then {
- if !(isNull _body) then {
- _body addWeapon dayz_onBack;
- };
- };
- _sum = 0;
- _kills = player getVariable["zombieKills",0];
- _heroKills = player getVariable["heroKills",0];
- _killsH = player getVariable["humanKills",0];
- _killsB = player getVariable["banditKills",0];
- _characterID = player getVariable["characterID",0];
- _humanity = player getVariable["humanity",0];
- _humanity_CHK = player getVariable["humanity_CHK",_humanity];
- // MW FRIENDLY CHECK @TODO
- if (iamMW) then {
- _sum = 50;
- _myPos = (getPos (vehicle player));
- _dir = (round (random 360));
- _pos = [((_myPos select 0)+4*sin(_dir)),((_myPos select 1)+4*cos(_dir)),0];
- PVOZ_MW_DEATH = [(getPos (vehicle player)),INT_NAME];
- publicVariableServer "PVOZ_MW_DEATH";
- terminate MWTHREAD;
- deleteMarker "mwMarker";
- deleteMarker "mwMarkerText";
- iamMW = false;
- } else {
- _sum = _sum + _heroKills + _killsH + _killsB;
- };
- /*
- player setVariable ["NORRN_unconscious", false, true];
- player setVariable ["unconsciousTime", 0, true];
- player setVariable ["USEC_isCardiac",false,true];
- player setVariable ["medForceUpdate",true,true];
- player setVariable ["bloodTaken", false, true];
- */
- r_player_unconscious = false;
- r_player_cardiac = false;
- _body removeAllEventHandlers "FiredNear";
- _body removeAllEventHandlers "HandleDamage";
- _body removeAllEventHandlers "Killed";
- _body removeAllEventHandlers "Fired";
- _body removeAllEventHandlers "GetOut";
- _body removeAllEventHandlers "GetIn";
- _body removeAllEventHandlers "Local";
- _body removeAction s_tagfriendly;
- clearVehicleInit _body;
- sleep 0.05;
- PVDZ_plr_Death = [dayz_characterID,0,_body,_playerID,_kills,_heroKills,_killsH,_killsB,_humanity, _sum, str(getPlayerUIDold player), INT_NAME,INT_WEAPON,INT_DISTANCE];
- publicVariableServer "PVDZ_plr_Death";
- player setDamage 1;
- player setVariable ["startcombattimer", 0];
- _array = _this;
- if (count _array > 0) then {
- _method = _array select 1;
- _body setVariable ["deathType",_method,true];
- };
- sleep 0.5;
- 0.1 fadeSound 0;
- uisleep 1;
- deleteMarkerLocal "ripMarker";
- _pos = getPos (vehicle player);
- int_ripmarker = createMarkerLocal ["ripMarker", _pos];
- int_ripmarker setMarkerShapeLocal "ICON";
- int_ripmarker setMarkerAlphaLocal 1;
- int_ripmarker setMarkerPosLocal _pos;
- int_ripmarker setMarkerTextLocal "R.I.P.";
- int_ripmarker setMarkerColorLocal "ColorBlack";
- int_ripmarker setMarkerTypeLocal "waypoint";
- int_ripmarker setMarkerSizeLocal [0.8,0.8];
- dayz_originalPlayer enableSimulation true;
- addSwitchableUnit dayz_originalPlayer;
- setPlayable dayz_originalPlayer;
- selectPlayer dayz_originalPlayer;
- _myGroup = group _body;
- [_body] joinSilent dayz_firstGroup;
- deleteGroup _myGroup;
- uisleep 1;
- cutText ["","BLACK OUT"];
- uisleep 1.5;
- 0 fadeSound 0;
- PVDZ_Server_Simulation = [_body, false];
- publicVariableServer "PVDZ_Server_Simulation";
- uisleep 3;
- disableUserInput false;
- [_characterID, _humanity, _humanity_CHK] spawn int_respawn;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement