This commit is contained in:
Zac Surplice
2013-11-26 11:32:56 +11:00
4 changed files with 5 additions and 3 deletions

View File

@@ -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];

View File

@@ -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;
};

View File

@@ -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];
};
};

View File

@@ -1121,7 +1121,7 @@ if (true) then
_this = _group_2 createUnit ["GUE_Soldier_MG", [1623.1722, 7797.7886, 0.25734121], [], 0, "CAN_COLLIDE"];
_unit_108 = _this;
_this setDir 274.59872;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; ";
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
_this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};