mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix add melee to full toolbelt eating weapon
Melee weapons were eaten when trying to add them to a full toolbelt because BIS_fnc_invAdd failed.
This commit is contained in:
@@ -78,6 +78,7 @@
|
|||||||
[FIXED] Players can no longer walk under water at Topolka Dam. @Bruce-LXXVI
|
[FIXED] Players can no longer walk under water at Topolka Dam. @Bruce-LXXVI
|
||||||
[FIXED] server_PublishVehicle3 will no longer dupe a vehicle if it fails to read the vehicle back from the database. @oiad
|
[FIXED] server_PublishVehicle3 will no longer dupe a vehicle if it fails to read the vehicle back from the database. @oiad
|
||||||
[FIXED] Panic sounds will no longer overlap when the player is attacked by zombies. #1861 @DeVloek
|
[FIXED] Panic sounds will no longer overlap when the player is attacked by zombies. #1861 @DeVloek
|
||||||
|
[FIXED] Melee weapons will no longer be eaten when attempting to add them to a full toolbelt.
|
||||||
|
|
||||||
[NOTE] The fixes below are included in the 1.0.6 Build C server package released December 29th, 2016 (http://dayzepoch.com/a2dayzepoch.php)
|
[NOTE] The fixes below are included in the 1.0.6 Build C server package released December 29th, 2016 (http://dayzepoch.com/a2dayzepoch.php)
|
||||||
[FIXED] Hive child 309 errors that resulted in broken saving of newly built storage object inventory. @icomrade
|
[FIXED] Hive child 309 errors that resulted in broken saving of newly built storage object inventory. @icomrade
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ _item = _this;
|
|||||||
_config = configFile >> "cfgWeapons" >> _item;
|
_config = configFile >> "cfgWeapons" >> _item;
|
||||||
_onBack = dayz_onBack in MeleeWeapons;
|
_onBack = dayz_onBack in MeleeWeapons;
|
||||||
|
|
||||||
|
//Check if toolbelt is full before removing melee
|
||||||
|
if (getNumber (_config >> "type") == 1 && ({getNumber (configFile >> "CfgWeapons" >> _x >> "type") == 131072} count (weapons player)) >= 12) exitWith {
|
||||||
|
localize "str_player_24" call dayz_rollingMessages;
|
||||||
|
dayz_actionInProgress = false;
|
||||||
|
};
|
||||||
|
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||||
if (_onLadder) exitWith {localize "str_player_21" call dayz_rollingMessages; dayz_actionInProgress = false;};
|
if (_onLadder) exitWith {localize "str_player_21" call dayz_rollingMessages; dayz_actionInProgress = false;};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user