mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
fixes plus podagorsk support
This commit is contained in:
@@ -2707,10 +2707,10 @@ class CfgMagazines {
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = "Ore";
|
||||
displayName = "Iron Ore";
|
||||
model = "\dayz_equip\models\trash_tincan.p3d";
|
||||
picture = "\dayz_equip\textures\equip_tincan_ca.paa";
|
||||
descriptionShort = "Ore: Used for crafting scrap metal. Can be mined from rocks using a sledgehammer.";
|
||||
descriptionShort = "Used for crafting scrap metal. Can be mined from rocks using a sledgehammer.";
|
||||
class ItemActions {
|
||||
class Crafting
|
||||
{
|
||||
|
||||
@@ -51,8 +51,8 @@ if (count(_findNearestRock) >= 1) then {
|
||||
if(_countOut<1)then{_countOut=4};
|
||||
|
||||
//diag_log format["DEBUG ROCK DISTANCE: %1 - %2 = %3", _rockBox,_distance2d,(_distance3d-_distance2d)];
|
||||
axeDiagLog = format["DEBUG ROCK DISTANCE: _rockBox:%1 | _distance2d:%2 | typeOf:%3 | alive:%4 | _countOut:%5 | damage:%6", _rockBox,_distance2d,typeOf _rock,alive _rock,_countOut,damage _rock ];
|
||||
publicVariable "axeDiagLog";
|
||||
//axeDiagLog = format["DEBUG ROCK DISTANCE: _rockBox:%1 | _distance2d:%2 | typeOf:%3 | alive:%4 | _countOut:%5 | damage:%6", _rockBox,_distance2d,typeOf _rock,alive _rock,_countOut,damage _rock ];
|
||||
//publicVariable "axeDiagLog";
|
||||
|
||||
// Start ore mining
|
||||
_counter = 0;
|
||||
@@ -116,12 +116,12 @@ if (count(_findNearestRock) >= 1) then {
|
||||
_item setdir (getDir player);
|
||||
player reveal _item;
|
||||
|
||||
// break rock
|
||||
/* break rock
|
||||
if("" == typeOf _rock) then {
|
||||
_rock setDamage 1;
|
||||
};
|
||||
//diag_log format["DEBUG TREE DAMAGE: %1", _rock];
|
||||
|
||||
diag_log format["DEBUG TREE DAMAGE: %1", _rock];
|
||||
*/
|
||||
cutText [format["\n\n%1 piles of ore has been successfully added in front of you.", _countOut], "PLAIN DOWN"];
|
||||
|
||||
} else {
|
||||
|
||||
@@ -2,6 +2,8 @@ disableSerialization;
|
||||
_display = (_this select 0);
|
||||
_close = {locked _x} count (nearestObjects [player, ["AllVehicles"], 5]) > 0;
|
||||
|
||||
cutText ["Cannot access gear on a locked vehicle." , "PLAIN DOWN"];
|
||||
|
||||
if(_close) then {
|
||||
_display closeDisplay 1;
|
||||
};
|
||||
Reference in New Issue
Block a user