mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +03:00
0.75 + 1.7.5.M1D21 with binaries and sql
This commit is contained in:
@@ -2,21 +2,14 @@ private["_location","_isOk","_dir","_classname"];
|
||||
private["_item"];
|
||||
_item = _this;
|
||||
call gear_ui_init;
|
||||
_hasChance = 9 > random 100;
|
||||
|
||||
if (["forest",dayz_surfaceType] call fnc_inString) then {
|
||||
if (!_hasChance) then {
|
||||
_result = [player,"PartWoodPile"] call BIS_fnc_invAdd;
|
||||
if (_result) then {
|
||||
cutText [localize "str_player_25", "PLAIN DOWN"];
|
||||
} else {
|
||||
cutText [localize "str_player_24", "PLAIN DOWN"];
|
||||
};
|
||||
} else {
|
||||
player removeWeapon "ItemHatchet";
|
||||
player addWeapon "ItemBrokeHatchet";
|
||||
cutText [localize "str_player_23", "PLAIN DOWN"];
|
||||
}
|
||||
} else {
|
||||
cutText [localize "str_player_23", "PLAIN DOWN"];
|
||||
};
|
||||
Reference in New Issue
Block a user