mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Adv. Trading handle other and free vehicle types
Allow players to sell vehicles without keys and add boat and bike trading classes to buy/sell
This commit is contained in:
@@ -108,14 +108,19 @@ _normalItems = _normalItems - ["soldItem"];
|
||||
|
||||
|
||||
if (count _vehInfo > 0) then {
|
||||
{
|
||||
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]) then {
|
||||
if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _keyID) then {
|
||||
_weaps set [count _weaps, _x];
|
||||
_deleteVeh = True;
|
||||
if (!((_vehInfo select 4) in ["trade_any_bicycle", "trade_any_bicycle_old", "trade_any_vehicle_free"])) then {
|
||||
{
|
||||
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]) then {
|
||||
if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _keyID) then {
|
||||
_weaps set [count _weaps, _x];
|
||||
_deleteVeh = True;
|
||||
};
|
||||
};
|
||||
};
|
||||
} count _normalWeaps;
|
||||
} count _normalWeaps;
|
||||
if (_keyID == "0") then {_deleteVeh = True;};
|
||||
} else {
|
||||
_deleteVeh = True;
|
||||
};
|
||||
};
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user