mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
[CHANGED] PBOPREFIX to $PBOPREFIX$ @Fank
|
[CHANGED] PBOPREFIX to $PBOPREFIX$ @Fank
|
||||||
[CHANGED] Consum Eat/Drink in vehicle will add empty food/drink cans into vehicle inventory. @SilvDev
|
[CHANGED] Consum Eat/Drink in vehicle will add empty food/drink cans into vehicle inventory. @SilvDev
|
||||||
|
[CHANGED] Lootsystem based on DayZ 1.8
|
||||||
|
|
||||||
[INFO] Models/textures by Paul Tomany. @Sequisha.
|
[INFO] Models/textures by Paul Tomany. @Sequisha.
|
||||||
[INFO] Special thanks to http://verthosting.com for hosting our development server.
|
[INFO] Special thanks to http://verthosting.com for hosting our development server.
|
||||||
@@ -48,15 +48,10 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then {
|
|||||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_hasoutput) then {
|
if (_hasoutput && !_invehicle) then {
|
||||||
// Selecting output
|
// Selecting output
|
||||||
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
||||||
|
|
||||||
if (_invehicle) exitWith {
|
|
||||||
sleep 2;
|
|
||||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
|
||||||
};
|
|
||||||
|
|
||||||
sleep 3;
|
sleep 3;
|
||||||
_nearByPile= nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
_nearByPile= nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||||
if (count _nearByPile ==0) then {
|
if (count _nearByPile ==0) then {
|
||||||
@@ -70,9 +65,10 @@ if (_hasoutput) then {
|
|||||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (_invehicle) then {
|
||||||
|
sleep 2;
|
||||||
|
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
|
};
|
||||||
|
|
||||||
//add infection chance for "ItemWaterbottle",
|
//add infection chance for "ItemWaterbottle",
|
||||||
if ((random 15 < 1) and (_itemorignal == "ItemWaterbottle")) then {
|
if ((random 15 < 1) and (_itemorignal == "ItemWaterbottle")) then {
|
||||||
|
|||||||
@@ -48,15 +48,10 @@ if (dayz_lastMeal < 3600) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_hasoutput) then {
|
if (_hasoutput && !_invehicle) then {
|
||||||
// Selecting output
|
// Selecting output
|
||||||
_itemtodrop = food_output select (food_with_output find _itemorignal);
|
_itemtodrop = food_output select (food_with_output find _itemorignal);
|
||||||
|
|
||||||
if (_invehicle) exitWith {
|
|
||||||
sleep 2;
|
|
||||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
|
||||||
};
|
|
||||||
|
|
||||||
sleep 3;
|
sleep 3;
|
||||||
_nearByPile= nearestObjects [(getposATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
_nearByPile= nearestObjects [(getposATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||||
if (count _nearByPile ==0) then {
|
if (count _nearByPile ==0) then {
|
||||||
@@ -70,6 +65,11 @@ if (_hasoutput) then {
|
|||||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (_invehicle) then {
|
||||||
|
sleep 2;
|
||||||
|
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
|
};
|
||||||
|
|
||||||
if (_rawfood and !_rawexceptions and (random 15 < 1)) then {
|
if (_rawfood and !_rawexceptions and (random 15 < 1)) then {
|
||||||
r_player_infected = true;
|
r_player_infected = true;
|
||||||
player setVariable["USEC_infected",true,true];
|
player setVariable["USEC_infected",true,true];
|
||||||
|
|||||||
Reference in New Issue
Block a user