+ Fixed Machete Spawns thanks to:
fe83fca83a
+ Add check for loot underground
da4cbfbaca
+ Tweaked supply crate model so that is is not sunk into the ground.
Fixes #249
+ Added 3 more female clothing variants thanks to
http://www.twitch.tv/miss_alejandria
+ Added player distance cursorTarget increase if target is isKindOf AIR
OR SHIP. Fixes #235
+ Changed currency conversion from 1 x 10oz copper for 1 oz silver to 3x
10oz copper for 1 oz silver.
This commit is contained in:
vbawol
2013-03-25 17:45:58 -05:00
parent 256ae2ac7f
commit fc36a7ac22
9 changed files with 280 additions and 16 deletions

View File

@@ -21,10 +21,8 @@ _hastinitem = false;
if (_x in magazines player) then {
_hastinitem = true;
};
} forEach boil_tin_cans;
_hasKnife = "ItemKnife" in items player;
_hasToolbox = "ItemToolbox" in items player;
//_hasTent = "ItemTent" in items player;
@@ -53,7 +51,9 @@ if (_canPickLight and !dayz_hasLight and !_isPZombie) then {
s_player_removeflare = -1;
};
// hint str(typeOf cursorTarget);
if(DZEdebug) then {
hint str(typeOf cursorTarget);
};
if(_isPZombie) then {
//_state = animationState player;
@@ -87,8 +87,15 @@ if(_isPZombie) then {
};
};
// Increase distance only if AIR OR SHIP
_allowedDistance = 4;
_isAir = cursorTarget isKindOf "Air";
_isShip = cursorTarget isKindOf "Ship";
if(_isAir or _isShip) then {
_allowedDistance = 6;
};
if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cursorTarget < 5)) then { //Has some kind of target
if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cursorTarget < _allowedDistance)) then { //Has some kind of target
_isHarvested = cursorTarget getVariable["meatHarvested",false];
_isVehicle = cursorTarget isKindOf "AllVehicles";
_isVehicletype = typeOf cursorTarget in ["ATV_US_EP1","ATV_CZ_EP1"];

View File

@@ -1,9 +1,12 @@
private["_iItem","_iClass","_iPos","_radius","_itemTypes","_index","_item","_qty","_max","_tQty","_canType","_weights","_cntWeights","_dateNow"];
private["_iItem","_iClass","_iPos","_radius","_itemTypes","_index","_item","_qty","_max","_tQty","_canType","_weights","_cntWeights","_dateNow","_iPosZ"];
_iItem = _this select 0;
_iClass = _this select 1;
_iPos = _this select 2;
_radius = _this select 3;
_iPosZ = _iPos select 2;
if( _iPosZ < 0 ) then { _iPos = [_iPos select 0,_iPos select 1,0]; };
switch (_iClass) do {
default {
//Item is food, add random quantity of cans along with an item (if exists)