commented out more diag_logs

This commit is contained in:
[VB]AWOL
2014-06-02 13:40:26 -05:00
parent d88d497e16
commit e7571b072d
14 changed files with 22 additions and 20 deletions

View File

@@ -80,7 +80,7 @@ if (_finished) then {
if (_count >= _qty_in) then { if (_count >= _qty_in) then {
_canAfford = true; _canAfford = true;
}; };
diag_log format["DEBUG vehicle sell count: %1", _count]; //diag_log format["DEBUG vehicle sell count: %1", _count];
} else { } else {
@@ -159,7 +159,7 @@ if (_finished) then {
_objects = nearestObjects [(getPosATL player), [_part_in], _distance]; _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); _qty = ({(typeOf _x) == _part_in} count _objects);

View File

@@ -80,7 +80,7 @@ if (_finished) then {
if (_count >= _qty_in) then { if (_count >= _qty_in) then {
_canAfford = true; _canAfford = true;
}; };
diag_log format["DEBUG vehicle sell count: %1", _count]; //diag_log format["DEBUG vehicle sell count: %1", _count];
} else { } else {
@@ -180,7 +180,7 @@ if (_finished) then {
_objects = nearestObjects [(getPosATL player), [_part_in], _distance]; _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); _qty = ({(typeOf _x) == _part_in} count _objects);

View File

@@ -80,7 +80,7 @@ if (_finished) then {
if (_count >= _qty_in) then { if (_count >= _qty_in) then {
_canAfford = true; _canAfford = true;
}; };
diag_log format["DEBUG vehicle sell count: %1", _count]; //diag_log format["DEBUG vehicle sell count: %1", _count];
} else { } else {
@@ -180,7 +180,7 @@ if (_finished) then {
_objects = nearestObjects [(getPosATL player), [_part_in], _distance]; _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); _qty = ({(typeOf _x) == _part_in} count _objects);

View File

@@ -80,7 +80,7 @@ if (_finished) then {
if (_count >= _qty_in) then { if (_count >= _qty_in) then {
_canAfford = true; _canAfford = true;
}; };
diag_log format["DEBUG vehicle sell count: %1", _count]; //diag_log format["DEBUG vehicle sell count: %1", _count];
} else { } else {
@@ -157,7 +157,7 @@ if (_finished) then {
_objects = nearestObjects [(getPosATL player), [_part_in], _distance]; _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); _qty = ({(typeOf _x) == _part_in} count _objects);

View File

@@ -6,7 +6,7 @@ DZE_ActionInProgress = true;
_activatingPlayer = player; _activatingPlayer = player;
diag_log format["DEBUG BACKPACK: %1", _this]; //diag_log format["DEBUG BACKPACK: %1", _this];
_part_out = (_this select 3) select 0; _part_out = (_this select 3) select 0;
_part_in = (_this select 3) select 1; _part_in = (_this select 3) select 1;

View File

@@ -6,7 +6,7 @@ DZE_ActionInProgress = true;
_activatingPlayer = player; _activatingPlayer = player;
diag_log format["DEBUG WEAPONS: %1", _this]; //diag_log format["DEBUG WEAPONS: %1", _this];
_part_out = (_this select 3) select 0; _part_out = (_this select 3) select 0;
_part_in = (_this select 3) select 1; _part_in = (_this select 3) select 1;

View File

@@ -87,9 +87,9 @@ _vault_location = (getPosATL _tmpvault);
// Make sure vault is not placed on road. // 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 // 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 //Block Tents in pounds
_objectsPond = nearestObjects [_playerPos, [], 10]; _objectsPond = nearestObjects [_playerPos, [], 10];

View File

@@ -77,9 +77,11 @@ if (_damage > 0.4) then {
if (_unitIsPlayer) then { if (_unitIsPlayer) then {
//Cause blood loss //Cause blood loss
//Log Damage //Log Damage
/*
if (DZE_Debug_Damage) then { if (DZE_Debug_Damage) then {
diag_log ("DAMAGE: player hit by " + typeOf _source + " in " + _hit + " with " + _ammo + " for " + str(_damage) + " scaled " + str(_damage * _scale)); 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); r_player_blood = r_player_blood - (_damage * _scale);
}; };
}; };

View File

@@ -6,7 +6,7 @@ if ("ItemMap_Debug" in items player) then {
_maptype = ["NameCityCapital","NameCity","NameVillage","NameLocal"]; _maptype = ["NameCityCapital","NameCity","NameVillage","NameLocal"];
_config = configFile >> "CfgWorlds" >> worldName >> "Names"; _config = configFile >> "CfgWorlds" >> worldName >> "Names";
for "_i" from 0 to (count _config -1) do { for "_i" from 0 to (count _config -1) do {
_class = _config select _i; //Returns a conif _class = _config select _i; //Returns a conif
_name = getText (_class >> "name"); _name = getText (_class >> "name");

View File

@@ -34,7 +34,7 @@ while {(alive _projectile) && !(isNull _projectile) && _callCount < 85;} do {
_isInCombat = _nearVehicle getVariable["startcombattimer",0]; _isInCombat = _nearVehicle getVariable["startcombattimer",0];
if ((alive _nearVehicle) && _isInCombat == 0) then { if ((alive _nearVehicle) && _isInCombat == 0) then {
_nearVehicle setVariable["startcombattimer", 1]; _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]; _isInCombat = _x getVariable["startcombattimer",0];
if (isPlayer _x && _isInCombat == 0 && alive _x) then { if (isPlayer _x && _isInCombat == 0 && alive _x) then {
_x setVariable["startcombattimer", 1]; _x setVariable["startcombattimer", 1];
diag_log("Now in Combat (Crew): " + name _x); //diag_log("Now in Combat (Crew): " + name _x);
}; };
} forEach (crew _nearVehicle); } forEach (crew _nearVehicle);
}; };

View File

@@ -23,7 +23,7 @@ player removeMagazine "FoodSteakRaw";
_animalID = _dog getVariable "fsm_handle"; _animalID = _dog getVariable "fsm_handle";
_animalID setFSMVariable ["_isTamed", true]; _animalID setFSMVariable ["_isTamed", true];
sleep 1; 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 { if (!moveToCompleted _dog) then {
_dog moveTo ([_dog] call FNC_GetPos); _dog moveTo ([_dog] call FNC_GetPos);
}; };

View File

@@ -17,7 +17,7 @@ if (isServer) then {
PVDZE_veh_Update = [_unit, "killed",_killer]; 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 {""}; _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]; }; _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 { } else {
PVDZE_veh_Update = [_unit, "killed"]; PVDZE_veh_Update = [_unit, "killed"];
}; };

View File

@@ -51,7 +51,7 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
//Check if anyone close //Check if anyone close
_tooClose = {isPlayer _x} count (_position nearEntities ["CAManBase",30]) > 0; _tooClose = {isPlayer _x} count (_position nearEntities ["CAManBase",30]) > 0;
if (_tooClose) exitwith { 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 //Add zeds if unitTypes equals 0
@@ -73,7 +73,7 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
}; };
//Check if point is in water //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]; _agent = createAgent [_type, _position, [], _radius, _method];
sleep 0.001; sleep 0.001;

View File

@@ -148,7 +148,7 @@ eh_localCleanup = {
deleteVehicle _unit; deleteVehicle _unit;
deleteGroup _myGroupUnit; deleteGroup _myGroupUnit;
//_unit = nil; //_unit = nil;
diag_log ("CLEANUP: DELETED A " + str(_type) ); // diag_log ("CLEANUP: DELETED A " + str(_type) );
}; };
}]; }];
}; };