Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "\ocap\script_macros.hpp"
- params ["_victim", "_killer", "_instigator"];
- if (_killer == _victim) then {
- _killer = _victim getVariable ["ace_medical_lastDamageSource", _killer];} else {_killer};
- if (isNull _instigator) then {_instigator = UAVControl vehicle _killer select 0};
- if (isNull _instigator) then {_instigator = _killer};
- // [ocap_captureFrameNo, "killed", _victimId, ["null"], -1];
- private _victimId = _victim getVariable ["ocap_id", -1];
- if (_victimId == -1) exitWith {};
- private _eventData = [ocap_captureFrameNo, "killed", _victimId, ["null"], -1];
- if (!isNull _killer) then {
- _killerId = _killer getVariable ["ocap_id", -1];
- if (_killerId != -1) then {
- private _killerInfo = [];
- if (_killer isKindOf "CAManBase") then {
- _killerInfo = [
- _killerId,
- getText (configFile >> "CfgWeapons" >> currentWeapon _killer >> "displayName")
- ];
- } else {
- _killerInfo = [_killerId];
- };
- _eventData = [
- ocap_captureFrameNo,
- "killed",
- _victimId,
- _killerInfo,
- round(_killer distance _victim)
- ];
- };
- };
- [":EVENT:", _eventData] call ocap_fnc_extension;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement