mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Merge branch 'master' of https://github.com/vbawol/DayZ-Epoch
This commit is contained in:
@@ -14,7 +14,7 @@ _vehiclePos = aimpos _vehicle;
|
||||
_playerPos = visiblePositionASL player;
|
||||
|
||||
// ignore if distance is too far
|
||||
if((_playerPos distance _vehiclePos) < 10) exitWith {};
|
||||
if((_playerPos distance _vehiclePos) > 10) exitWith {};
|
||||
|
||||
// Important! without this we looking at the players feet this gets us torso area
|
||||
_playerPos set [2,(_playerPos select 2)+1];
|
||||
|
||||
@@ -18,6 +18,8 @@ dayz_combat = 1;
|
||||
if (_ammo isKindOf "Melee") exitWith {
|
||||
_unit playActionNow "GestureSwing";
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
|
||||
// harvest wood check
|
||||
_id = _this spawn player_harvest;
|
||||
};
|
||||
|
||||
@@ -197,7 +197,7 @@ if (_characterID != "0") then {
|
||||
if (vehicle _character != _character) then {
|
||||
//[vehicle _character, "position"] call server_updateObject;
|
||||
if (!(vehicle _character in needUpdate_objects)) then {
|
||||
diag_log format["DEBUG: Added to NeedUpdate=%1",vehicle _character];
|
||||
//diag_log format["DEBUG: Added to NeedUpdate=%1",vehicle _character];
|
||||
needUpdate_objects set [count needUpdate_objects, vehicle _character];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user