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:
icomrade
2014-03-26 02:40:24 -04:00
parent 935ed7931d
commit b80bb88467
9 changed files with 76 additions and 72 deletions

View File

@@ -120,6 +120,12 @@ _object_killed = {
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
_object setVariable ["needUpdate",false,true];
if ((count _this) > 2) then {
_killer = _this select 2;
_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];
};
};
_object_repair = {