mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Remove selling backpacks from vehicles
I don't think we should allow selling backpacks from vehicles because we can not get backpack contents. We can only remove all backpacks with clearBackpackCargo and then add back new empty backpacks for ones that weren't sold. This means players may unintentionally wipe all contents of all other backpacks in their vehicle when they only want to sell one. Thanks @AirwavesMan for catching this. Also made changes discussed in #1718 @oiad
This commit is contained in:
@@ -51,8 +51,6 @@ if (_selection == 0) then { //backpack
|
||||
if (!isNull _backpack) then {
|
||||
_freeSpace = [_backpack,0,0,0,0] call Z_calcFreeSpace;
|
||||
_totalSpace = _freeSpace select 0;
|
||||
_allowedMags = _freeSpace select 1;
|
||||
_allowedWeapons = _freeSpace select 2;
|
||||
_totalBagSlots = _freeSpace select 4;
|
||||
|
||||
_pic = getText (configFile >> "CfgVehicles" >> (typeOf _backpack) >> "picture");
|
||||
|
||||
Reference in New Issue
Block a user