mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Improve some RPT logging
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user