From ba480fb218a46f056e635786505f7509b5219488 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 19 Apr 2016 14:01:38 -0400 Subject: [PATCH] Improve some RPT logging --- SQF/dayz_code/compile/player_forceSave.sqf | 2 +- SQF/dayz_code/compile/player_projectileNear.sqf | 10 +++++----- SQF/dayz_code/compile/player_switchModel.sqf | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/SQF/dayz_code/compile/player_forceSave.sqf b/SQF/dayz_code/compile/player_forceSave.sqf index e0448cfc4..364e5e593 100644 --- a/SQF/dayz_code/compile/player_forceSave.sqf +++ b/SQF/dayz_code/compile/player_forceSave.sqf @@ -11,6 +11,6 @@ if ((count _magazineArray) > 0) then { publicVariableServer "PVDZ_plr_Save"; }; -diag_log (_magazineArray); +diag_log format["Player_forceSave with magazines: %1",_magazineArray]; dayz_lastSave = diag_tickTime; diff --git a/SQF/dayz_code/compile/player_projectileNear.sqf b/SQF/dayz_code/compile/player_projectileNear.sqf index 6215a64a5..5bfe9cc5d 100644 --- a/SQF/dayz_code/compile/player_projectileNear.sqf +++ b/SQF/dayz_code/compile/player_projectileNear.sqf @@ -2,12 +2,12 @@ private ["_currentNear","_listNear","_callCount"]; _unit = _this select 0; _projectile = _this select 6; -diag_log ("0"); +//diag_log ("0"); //_isInComat = _unit getVariable["startcombattimer",0]; -diag_log ("Bullit Speed: " +str(Speed _projectile)); -diag_log ("Bullit Velocity: " +str(velocity _projectile)); +//diag_log ("Bullit Speed: " +str(Speed _projectile)); +//diag_log ("Bullit Velocity: " +str(velocity _projectile)); _listNear = []; _callCount = 0; @@ -23,12 +23,12 @@ while {(alive _projectile) && !(isNull _projectile) && (_callCount < 85)} do { _listNear = _listNear + _currentNear; _callCount = _callCount + 1; }; -diag_log ("2"); +//diag_log ("2"); { _nearVehicle = _x; _listNear = _listNear - [_x]; - diag_log ("3"); + //diag_log ("3"); if (isPlayer _nearVehicle) then { _isInCombat = _nearVehicle getVariable["startcombattimer",0]; diff --git a/SQF/dayz_code/compile/player_switchModel.sqf b/SQF/dayz_code/compile/player_switchModel.sqf index 7a8d51d53..c218e7b56 100644 --- a/SQF/dayz_code/compile/player_switchModel.sqf +++ b/SQF/dayz_code/compile/player_switchModel.sqf @@ -128,10 +128,10 @@ if (!isNil "_newBackpackType") then { //Debug Message diag_log "Swichtable Unit Created. Equipment:"; -diag_log str(weapons _newUnit); -diag_log str(magazines _newUnit); -diag_log str(getWeaponCargo unitBackpack _newUnit); -diag_log str(getMagazineCargo unitBackpack _newUnit); +diag_log format["Weapons: %1",weapons _newUnit]; +diag_log format["Magazines: %1",magazines _newUnit]; +diag_log format["Backpack weapons: %1",getWeaponCargo unitBackpack _newUnit]; +diag_log format["Backpack magazines: %1",getMagazineCargo unitBackpack _newUnit]; //Make New Unit Playable (1 of these 3 commands causes crashes with gear dialog open) //_oldUnit setPosATL [_position select 0 + cos(_dir) * 2, _position select 1 + sin(_dir) * 2, _position select 2];