a3_vemf_reloaded/exile_vemf_reloaded/sqf/sayKilledWeapon.sqf

30 lines
987 B
Plaintext
Raw Normal View History

2016-04-16 11:11:56 +00:00
/*
Author: IT07
Description:
handles the broadcast of a systemChat kill message
*/
2016-04-17 14:43:19 +00:00
_target = param [0, objNull, [objNull]];
_killer = param [1, objNull, [objNull]];
2016-06-11 21:14:38 +00:00
_curWeapon = "Weapon";
if (vehicle _killer isEqualTo _killer) then // If on foot
2016-04-16 11:11:56 +00:00
{
2016-06-11 21:14:38 +00:00
_curWeapon = currentWeapon _killer;
};
if not(vehicle _killer isEqualTo _killer) then // If in vehicle
{
_curWeapon = currentWeapon (vehicle _killer);
};
_dist = _target distance _killer;
_sayKilled = "sayKilled" call VEMFr_fnc_getSetting;
if (_sayKilled isEqualTo 1) then
{
[format["(VEMFr) %1 [%2, %3m] AI", name _killer, getText(configFile >> "CfgWeapons" >> _curWeapon >> "displayName"), round _dist]] ExecVM "exile_vemf_reloaded\sqf\systemChatToClient.sqf";
};
if (_sayKilled isEqualTo 2) then
{
[format["(VEMFr) You [%1, %2m] AI", getText(configFile >> "CfgWeapons" >> _curWeapon >> "displayName"), round _dist]] ExecVM "exile_vemf_reloaded\sqf\systemChatToClient.sqf";
2016-04-16 11:11:56 +00:00
};