mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
031dd386ad
Added distance to the party member notification when they kill an AI The mine created by using "DMS_explode_onRoadkill" is spawned on the player, so the player can't get away with running an AI over if he/she simply drives really fast.
23 lines
352 B
Plaintext
23 lines
352 B
Plaintext
/*
|
|
DMS_fnc_selectMagazine
|
|
Created by eraser1
|
|
|
|
Usage:
|
|
_weaponClassName call DMS_fnc_selectMagazine;
|
|
|
|
Apply magazine type filters if needed
|
|
*/
|
|
|
|
|
|
private["_result","_ammoArray"];
|
|
|
|
_result = "";
|
|
_ammoArray = getArray (configFile >> "CfgWeapons" >> _this >> "magazines");
|
|
|
|
if (count _ammoArray > 0) then
|
|
{
|
|
_result = _ammoArray select 0;
|
|
};
|
|
|
|
_result
|