mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +03:00
0.7 + 1.7.5.M1D19
This commit is contained in:
@@ -4,29 +4,11 @@ _qty = _this select 1;
|
||||
_type = typeOf _item;
|
||||
_meat = 0;
|
||||
_loop = true;
|
||||
_rawfoodtype = configFile >> "CfgSurvival" >> "Meat" >> _type >> "rawfoodtype";
|
||||
|
||||
if (local _item) then {
|
||||
for "_x" from 1 to _qty do {
|
||||
diag_log ("Item Type: " +str(_item));
|
||||
switch (_type) do {
|
||||
case "Cow": {
|
||||
_item addMagazine "FoodSteakRaw";
|
||||
};
|
||||
case "Goat": {
|
||||
_item addMagazine "FoodSteakRaw";
|
||||
};
|
||||
case "Sheep": {
|
||||
_item addMagazine "FoodSteakRaw";
|
||||
};
|
||||
case "WildBoar": {
|
||||
_item addMagazine "FoodboarRaw";
|
||||
};
|
||||
case "hen": {
|
||||
_item addMagazine "FoodSteakRaw";
|
||||
};
|
||||
case "Rabbit": {
|
||||
_item addMagazine "FoodSteakRaw";
|
||||
};
|
||||
};
|
||||
_item addMagazine _rawfoodtype;
|
||||
};
|
||||
sleep 2;
|
||||
_timer = time;
|
||||
|
||||
@@ -34,7 +34,6 @@ else
|
||||
};
|
||||
|
||||
diag_log ("PDEATH: Player Died " + _playerID);
|
||||
|
||||
/*
|
||||
_eh = [_newObject] spawn {
|
||||
_body = _this select 0;
|
||||
|
||||
@@ -82,7 +82,7 @@ while {_retry < 15} do {
|
||||
// GET DB ID
|
||||
_key = format["CHILD:388:%1:",_uid];
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_result = [_key] call server_hiveReadWrite;
|
||||
_result = _key call server_hiveReadWrite;
|
||||
_outcome = _result select 0;
|
||||
if (_outcome == "PASS") then {
|
||||
_oid = _result select 1;
|
||||
|
||||
@@ -96,7 +96,7 @@ server_hiveWrite = {
|
||||
private["_data"];
|
||||
//diag_log ("ATTEMPT WRITE: " + _this);
|
||||
_data = "HiveExt" callExtension _this;
|
||||
diag_log ("WRITE: " + _data);
|
||||
diag_log ("WRITE: " +str(_data));
|
||||
};
|
||||
|
||||
server_hiveReadWrite = {
|
||||
@@ -104,7 +104,7 @@ server_hiveReadWrite = {
|
||||
_key = _this;
|
||||
//diag_log ("ATTEMPT READ/WRITE: " + _key);
|
||||
_data = "HiveExt" callExtension _key;
|
||||
diag_log ("READ/WRITE: " + _data);
|
||||
diag_log ("READ/WRITE: " +str(_data));
|
||||
_resultArray = call compile format ["%1",_data];
|
||||
_resultArray
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user