diff --git a/SQF/dayz_code/actions/trade_any_bicycle.sqf b/SQF/dayz_code/actions/trade_any_bicycle.sqf index 977729b8b..2cdf794d9 100644 --- a/SQF/dayz_code/actions/trade_any_bicycle.sqf +++ b/SQF/dayz_code/actions/trade_any_bicycle.sqf @@ -80,7 +80,7 @@ if (_finished) then { if (_count >= _qty_in) then { _canAfford = true; }; - diag_log format["DEBUG vehicle sell count: %1", _count]; + //diag_log format["DEBUG vehicle sell count: %1", _count]; } else { @@ -159,7 +159,7 @@ if (_finished) then { _objects = nearestObjects [(getPosATL player), [_part_in], _distance]; - diag_log format["DEBUG vehicle sell objects: %1", _objects]; + //diag_log format["DEBUG vehicle sell objects: %1", _objects]; _qty = ({(typeOf _x) == _part_in} count _objects); diff --git a/SQF/dayz_code/actions/trade_any_boat.sqf b/SQF/dayz_code/actions/trade_any_boat.sqf index 3ff95ff72..4f4ea31d1 100644 --- a/SQF/dayz_code/actions/trade_any_boat.sqf +++ b/SQF/dayz_code/actions/trade_any_boat.sqf @@ -80,7 +80,7 @@ if (_finished) then { if (_count >= _qty_in) then { _canAfford = true; }; - diag_log format["DEBUG vehicle sell count: %1", _count]; + //diag_log format["DEBUG vehicle sell count: %1", _count]; } else { @@ -180,7 +180,7 @@ if (_finished) then { _objects = nearestObjects [(getPosATL player), [_part_in], _distance]; - diag_log format["DEBUG vehicle sell objects: %1", _objects]; + //diag_log format["DEBUG vehicle sell objects: %1", _objects]; _qty = ({(typeOf _x) == _part_in} count _objects); diff --git a/SQF/dayz_code/actions/trade_any_vehicle.sqf b/SQF/dayz_code/actions/trade_any_vehicle.sqf index 559baffdb..ad52959e9 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle.sqf @@ -80,7 +80,7 @@ if (_finished) then { if (_count >= _qty_in) then { _canAfford = true; }; - diag_log format["DEBUG vehicle sell count: %1", _count]; + //diag_log format["DEBUG vehicle sell count: %1", _count]; } else { @@ -180,7 +180,7 @@ if (_finished) then { _objects = nearestObjects [(getPosATL player), [_part_in], _distance]; - diag_log format["DEBUG vehicle sell objects: %1", _objects]; + //diag_log format["DEBUG vehicle sell objects: %1", _objects]; _qty = ({(typeOf _x) == _part_in} count _objects); diff --git a/SQF/dayz_code/actions/trade_any_vehicle_free.sqf b/SQF/dayz_code/actions/trade_any_vehicle_free.sqf index c62f91fa7..9797625d8 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle_free.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle_free.sqf @@ -80,7 +80,7 @@ if (_finished) then { if (_count >= _qty_in) then { _canAfford = true; }; - diag_log format["DEBUG vehicle sell count: %1", _count]; + //diag_log format["DEBUG vehicle sell count: %1", _count]; } else { @@ -157,7 +157,7 @@ if (_finished) then { _objects = nearestObjects [(getPosATL player), [_part_in], _distance]; - diag_log format["DEBUG vehicle sell objects: %1", _objects]; + //diag_log format["DEBUG vehicle sell objects: %1", _objects]; _qty = ({(typeOf _x) == _part_in} count _objects); diff --git a/SQF/dayz_code/actions/trade_backpacks.sqf b/SQF/dayz_code/actions/trade_backpacks.sqf index 60f6f03d3..aceaeb45e 100644 --- a/SQF/dayz_code/actions/trade_backpacks.sqf +++ b/SQF/dayz_code/actions/trade_backpacks.sqf @@ -6,7 +6,7 @@ DZE_ActionInProgress = true; _activatingPlayer = player; -diag_log format["DEBUG BACKPACK: %1", _this]; +//diag_log format["DEBUG BACKPACK: %1", _this]; _part_out = (_this select 3) select 0; _part_in = (_this select 3) select 1; diff --git a/SQF/dayz_code/actions/trade_weapons.sqf b/SQF/dayz_code/actions/trade_weapons.sqf index c2dd60f72..9dd34bdd2 100644 --- a/SQF/dayz_code/actions/trade_weapons.sqf +++ b/SQF/dayz_code/actions/trade_weapons.sqf @@ -6,7 +6,7 @@ DZE_ActionInProgress = true; _activatingPlayer = player; -diag_log format["DEBUG WEAPONS: %1", _this]; +//diag_log format["DEBUG WEAPONS: %1", _this]; _part_out = (_this select 3) select 0; _part_in = (_this select 3) select 1; diff --git a/SQF/dayz_code/actions/vault_pitch.sqf b/SQF/dayz_code/actions/vault_pitch.sqf index 3f00e3a7b..1ed8a6174 100644 --- a/SQF/dayz_code/actions/vault_pitch.sqf +++ b/SQF/dayz_code/actions/vault_pitch.sqf @@ -87,9 +87,9 @@ _vault_location = (getPosATL _tmpvault); // Make sure vault is not placed on road. -if (isOnRoad _vault_location) then { _isOk = true; diag_log ("surface is road"); }; +if (isOnRoad _vault_location) then { _isOk = true; }; // Make sure vault is not placed in trader citys -if(!canbuild) then { _isOk = true; diag_log ("is trader city"); }; +if(!canbuild) then { _isOk = true; }; //Block Tents in pounds _objectsPond = nearestObjects [_playerPos, [], 10]; diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 0105fdc04..ab33babe6 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -77,9 +77,11 @@ if (_damage > 0.4) then { if (_unitIsPlayer) then { //Cause blood loss //Log Damage + /* if (DZE_Debug_Damage) then { diag_log ("DAMAGE: player hit by " + typeOf _source + " in " + _hit + " with " + _ammo + " for " + str(_damage) + " scaled " + str(_damage * _scale)); }; + */ r_player_blood = r_player_blood - (_damage * _scale); }; }; diff --git a/SQF/dayz_code/compile/fnc_MapEventHandler.sqf b/SQF/dayz_code/compile/fnc_MapEventHandler.sqf index 3e947bd23..93d3798fe 100644 --- a/SQF/dayz_code/compile/fnc_MapEventHandler.sqf +++ b/SQF/dayz_code/compile/fnc_MapEventHandler.sqf @@ -6,7 +6,7 @@ if ("ItemMap_Debug" in items player) then { for "_i" from 0 to (count _config -1) do { _class = _config select _i; //Returns a conif _name = getText (_class >> "name"); _type = getText (_class >> "type"); _position = getArray (_class >> "position"); _radiusA = getNumber (_class >> "radiusA"); _radiusB = getNumber (_class >> "radiusB"); if (_type in _maptype) then { - diag_log(format["Config Type, Name: %1 / Type: %2 / Position: %3, Passed",_name,_type,_position]); + //diag_log(format["Config Type, Name: %1 / Type: %2 / Position: %3, Passed",_name,_type,_position]); // _rnd = random 1; // _chance = 0.6; // if (_rnd < _chance) then { diff --git a/SQF/dayz_code/compile/player_projectileNear.sqf b/SQF/dayz_code/compile/player_projectileNear.sqf index 01a9b0c08..1bbe65946 100644 --- a/SQF/dayz_code/compile/player_projectileNear.sqf +++ b/SQF/dayz_code/compile/player_projectileNear.sqf @@ -34,7 +34,7 @@ while {(alive _projectile) && !(isNull _projectile) && _callCount < 85;} do { _isInCombat = _nearVehicle getVariable["startcombattimer",0]; if ((alive _nearVehicle) && _isInCombat == 0) then { _nearVehicle setVariable["startcombattimer", 1]; - diag_log("Now in Combat (Player): " + name _unit); + //diag_log("Now in Combat (Player): " + name _unit); }; }; @@ -43,7 +43,7 @@ while {(alive _projectile) && !(isNull _projectile) && _callCount < 85;} do { _isInCombat = _x getVariable["startcombattimer",0]; if (isPlayer _x && _isInCombat == 0 && alive _x) then { _x setVariable["startcombattimer", 1]; - diag_log("Now in Combat (Crew): " + name _x); + //diag_log("Now in Combat (Crew): " + name _x); }; } forEach (crew _nearVehicle); }; diff --git a/SQF/dayz_code/compile/tame_dog.sqf b/SQF/dayz_code/compile/tame_dog.sqf index a53fd73fc..a8af20e27 100644 --- a/SQF/dayz_code/compile/tame_dog.sqf +++ b/SQF/dayz_code/compile/tame_dog.sqf @@ -23,7 +23,7 @@ player removeMagazine "FoodSteakRaw"; _animalID = _dog getVariable "fsm_handle"; _animalID setFSMVariable ["_isTamed", true]; sleep 1; -diag_log format["DEBUG: %1, id: %2 [%3]",_dog,_animalID,completedFSM _animalID]; +// diag_log format["DEBUG: %1, id: %2 [%3]",_dog,_animalID,completedFSM _animalID]; if (!moveToCompleted _dog) then { _dog moveTo ([_dog] call FNC_GetPos); }; diff --git a/SQF/dayz_code/compile/vehicle_handleKilled.sqf b/SQF/dayz_code/compile/vehicle_handleKilled.sqf index f1f86356b..6d538fc7b 100644 --- a/SQF/dayz_code/compile/vehicle_handleKilled.sqf +++ b/SQF/dayz_code/compile/vehicle_handleKilled.sqf @@ -17,7 +17,7 @@ if (isServer) then { PVDZE_veh_Update = [_unit, "killed",_killer]; _killerVeh = if (vehicle _killer != _killer) then { format["[KILLER IN VEHICLE %1 OF TYPE %2]", (vehicle _killer), (typeOf (vehicle _killer))]; } else {""}; _name = if (alive _killer) then { name _killer; } else { format["OBJECT %1", _killer]; }; - diag_log format["DAMAGE: Vehicle %1 (TYPE: %2) Killed by player %3 (UID: %4) %5",_unit, (typeOf _unit), _name, (getPlayerUID _killer), _killerVeh]; + // diag_log format["DAMAGE: Vehicle %1 (TYPE: %2) Killed by player %3 (UID: %4) %5",_unit, (typeOf _unit), _name, (getPlayerUID _killer), _killerVeh]; } else { PVDZE_veh_Update = [_unit, "killed"]; }; diff --git a/SQF/dayz_code/compile/zombie_generate.sqf b/SQF/dayz_code/compile/zombie_generate.sqf index 408017631..bd3d8ba5b 100644 --- a/SQF/dayz_code/compile/zombie_generate.sqf +++ b/SQF/dayz_code/compile/zombie_generate.sqf @@ -51,7 +51,7 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies < //Check if anyone close _tooClose = {isPlayer _x} count (_position nearEntities ["CAManBase",30]) > 0; if (_tooClose) exitwith { - diag_log ("Zombie_Generate: was too close to player."); + // diag_log ("Zombie_Generate: was too close to player."); }; //Add zeds if unitTypes equals 0 @@ -73,7 +73,7 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies < }; //Check if point is in water - if (surfaceIsWater _position) exitwith { Diag_log ("Location is in Water Abort"); }; + if (surfaceIsWater _position) exitwith { }; _agent = createAgent [_type, _position, [], _radius, _method]; sleep 0.001; diff --git a/SQF/dayz_server/init/server_functions.sqf b/SQF/dayz_server/init/server_functions.sqf index 60e21db52..de564d76c 100644 --- a/SQF/dayz_server/init/server_functions.sqf +++ b/SQF/dayz_server/init/server_functions.sqf @@ -148,7 +148,7 @@ eh_localCleanup = { deleteVehicle _unit; deleteGroup _myGroupUnit; //_unit = nil; - diag_log ("CLEANUP: DELETED A " + str(_type) ); + // diag_log ("CLEANUP: DELETED A " + str(_type) ); }; }]; };