mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
used to be "sayKilledWeapon.sqf"
This commit is contained in:
parent
71dde9e1f8
commit
62fa2467bb
24
a3_vemf_reloaded/sqf/sayKilled.sqf
Normal file
24
a3_vemf_reloaded/sqf/sayKilled.sqf
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
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", "", [""]]
|
||||
];
|
||||
|
||||
|
||||
private ["_crWpn","_cfg"];
|
||||
if (vehicle _k isEqualTo _k) then { _crWpn = currentWeapon _k; _cfg = "CfgWeapons" }
|
||||
else { _crWpn = typeOf (vehicle _k); _cfg = "CfgVehicles" };
|
||||
_dist = _t distance _k;
|
||||
_dspName = getText(configFile >> _cfg >> _crWpn >> "displayName");
|
||||
_dspName = _dspName select [0, _dspName find " "];
|
||||
[format["%1 killed %2 with %3 from %4m", _nk, if (("sayKilledName" call VEMFr_fnc_config) > 0) then {_nt + " (AI)"} else {"an AI"}, _dspName, round _dist]] ExecVM ("systemChatToClient" call VEMFr_fnc_scriptPath);
|
Loading…
Reference in New Issue
Block a user