mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
- Moved player_countMagazines to \compile\ folder - Removed several unused and obsolete files - Moved some epoch functions out of compiles.sqf into individual files - Synced order and formatting with 1.8.7. Much easier to compare now. Any changes I make to official DayZ Mod code and files I also submit as a pull request to them.
14 lines
642 B
Plaintext
14 lines
642 B
Plaintext
private ["_temp_keys","_temp_keys_names","_key_colors","_ownerKeyId","_ownerKeyName"];
|
|
_temp_keys = [];
|
|
_temp_keys_names = [];
|
|
// find available keys
|
|
_key_colors = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"];
|
|
{
|
|
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _key_colors) then {
|
|
_ownerKeyId = getNumber(configFile >> "CfgWeapons" >> _x >> "keyid");
|
|
_ownerKeyName = getText(configFile >> "CfgWeapons" >> _x >> "displayName");
|
|
_temp_keys_names set [_ownerKeyId,_ownerKeyName];
|
|
_temp_keys set [count _temp_keys,str(_ownerKeyId)];
|
|
};
|
|
} count (items player);
|
|
[_temp_keys,_temp_keys_names] |