Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> params [
- ["_unit",objNull,[objNull]],
- ["_killer",objNull,[objNull]]
- ];
- disableSerialization;
- /* Custom Deathmessages */
- _message = "";
- _headshoted = _unit getVariable ["Headshoted",false];
- _headshotedBy = _unit getVariable ["HeadshotedBy",objNull];
- if (!isNull _killer && {_killer != _unit} && {alive _killer}) then {
- if (vehicle _killer isKindOf "LandVehicle") then {
- _message = format ["%1 was killed by %2",_unit getVariable ["realname",name _unit],_killer getVariable ["realname",name _killer]];
- };
- if (_headshoted && _headshotedBy isEqualTo _killer) then {
- _message = format ["%1 was headshoted by %2 with a %3",_unit getVariable ["realname",name _unit],_killer getVariable ["realname",name _killer],(getText(configFile >> "cfgWeapons" >> currentWeapon _killer >> "displayName"))];
- } else {
- _message = format ["%1 was killed by %2 with a %3",_unit getVariable ["realname",name _unit],_killer getVariable ["realname",name _killer],(getText(configFile >> "cfgWeapons" >> currentWeapon _killer >> "displayName"))];
- };
- } else {
- _message = format ["%1 committed suicide",_unit getVariable ["realname",name _unit]];
- };
- systemChat _message;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement