mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
/*
|
|
Author: IT07
|
|
|
|
Description:
|
|
handles the broadcast of a systemChat kill message
|
|
*/
|
|
|
|
(_this select 0) params [
|
|
["_t", objNull, [objNull]],
|
|
["_nt", "", [""]]
|
|
];
|
|
(_this select 1) params [
|
|
["_k", objNull, [objNull]],
|
|
["_nk", "", [""]]
|
|
];
|
|
|
|
|
|
_crWpn = "Weapon";
|
|
if (vehicle _k isEqualTo _k) then { _crWpn = currentWeapon _k };
|
|
if not(vehicle _k isEqualTo _k) then { _crWpn = currentWeapon (vehicle _k) };
|
|
_dist = _t distance _k;
|
|
|
|
_sk = "sayKilled" call VEMFr_fnc_config;
|
|
if (_sk isEqualTo 1) then { [format["(VEMFr) %1 [%2, %3m] %4", _nk, getText(configFile >> "CfgWeapons" >> _crWpn >> "displayName"), round _dist, if (("sayKilledName" call VEMFr_fnc_config) > 0) then {_nt} else {"AI"}]] ExecVM "exile_vemf_reloaded\sqf\systemChatToClient.sqf" };
|
|
if (_sk isEqualTo 2) then { [format["(VEMFr) You [%1, %2m] %4", getText(configFile >> "CfgWeapons" >> _crWpn >> "displayName"), round _dist, if (("sayKilledName" call VEMFr_fnc_config) > 0) then {_nt} else {"AI"}]] ExecVM "exile_vemf_reloaded\sqf\systemChatToClient.sqf" };
|