From 8de83d48323e24f653c00b885f8c379f84a8f74e Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Mon, 25 Nov 2013 17:03:10 -0600 Subject: [PATCH 1/4] remove debug --- SQF/dayz_server/compile/server_playerSync.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_server/compile/server_playerSync.sqf b/SQF/dayz_server/compile/server_playerSync.sqf index 464e877b0..ad0a55fe1 100644 --- a/SQF/dayz_server/compile/server_playerSync.sqf +++ b/SQF/dayz_server/compile/server_playerSync.sqf @@ -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]; }; }; From 65d642537eb77e0536c9968f9b91f41fdad7e08d Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Mon, 25 Nov 2013 17:03:20 -0600 Subject: [PATCH 2/4] whitespace --- SQF/dayz_server/missions/DayZ_Epoch_11.Chernarus/mission.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_server/missions/DayZ_Epoch_11.Chernarus/mission.sqf b/SQF/dayz_server/missions/DayZ_Epoch_11.Chernarus/mission.sqf index 06fbd2160..940e10337 100644 --- a/SQF/dayz_server/missions/DayZ_Epoch_11.Chernarus/mission.sqf +++ b/SQF/dayz_server/missions/DayZ_Epoch_11.Chernarus/mission.sqf @@ -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;}; From dee6e79538aacece5498e15d2c5c7a3e9b829b1e Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Mon, 25 Nov 2013 18:29:04 -0600 Subject: [PATCH 3/4] typo --- SQF/dayz_code/compile/player_antiWall.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/player_antiWall.sqf b/SQF/dayz_code/compile/player_antiWall.sqf index e19e257a1..48948f2e1 100644 --- a/SQF/dayz_code/compile/player_antiWall.sqf +++ b/SQF/dayz_code/compile/player_antiWall.sqf @@ -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]; From f777294485ae80bb8128b30eb8d742c1b3a80e31 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Mon, 25 Nov 2013 18:29:49 -0600 Subject: [PATCH 4/4] hunger and thirst on melee swing --- SQF/dayz_code/compile/player_fired.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SQF/dayz_code/compile/player_fired.sqf b/SQF/dayz_code/compile/player_fired.sqf index 11e23f8e0..76884d6dd 100644 --- a/SQF/dayz_code/compile/player_fired.sqf +++ b/SQF/dayz_code/compile/player_fired.sqf @@ -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; };