mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-19 14:42:56 +03:00
Add missing variable + RPT cleanup
fix 2 dup string warnings fix "Cannot delete class rscdisplayinfo" warning. Start extended vehicle damage debugging.
This commit is contained in:
@@ -77,7 +77,9 @@ if (_damage > 0.4) then {
|
||||
if (_unitIsPlayer) then {
|
||||
//Cause blood loss
|
||||
//Log Damage
|
||||
diag_log ("DAMAGE: player hit by " + typeOf _source + " in " + _hit + " with " + _ammo + " for " + str(_damage) + " scaled " + str(_damage * _scale));
|
||||
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);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
//_killer = _this select 1;
|
||||
//_type = typeOf _unit;
|
||||
//_pos = getposATL _unit;
|
||||
//_dir = direction _unit;
|
||||
if (local _unit) then {
|
||||
deleteVehicle _unit;
|
||||
};
|
||||
|
||||
@@ -13,7 +13,14 @@ _hitPoints = _unit call vehicle_getHitpoints;
|
||||
if (isServer) then {
|
||||
[_unit, "killed"] call server_updateObject;
|
||||
} else {
|
||||
PVDZE_veh_Update = [_unit, "killed"];
|
||||
if (DZE_Debug_Damage && !(isPlayer _unit)) 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 {"KILLER NOT IN VEHICLE";};
|
||||
_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];
|
||||
} else {
|
||||
PVDZE_veh_Update = [_unit, "killed"];
|
||||
};
|
||||
publicVariableServer "PVDZE_veh_Update";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user