mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-07 16:52:53 +03:00
0.92
+ formatting for damage percentage for repair and salvage. + Chance to break part when salvaging damaged parts. + Potential fix for purchased vehicle damage handler. + added check when cracking vault to exit when toolbox is broken + Potential fix for glitched extra crack vault options and no delay. + 1.7.5.1
This commit is contained in:
@@ -127,7 +127,7 @@ _object setDamage _damage;
|
||||
_object setvelocity [0,0,1];
|
||||
_object setFuel _fuel;
|
||||
|
||||
_id = _object spawn fnc_vehicleEventHandler;
|
||||
_object call fnc_vehicleEventHandler;
|
||||
|
||||
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
|
||||
|
||||
|
||||
@@ -150,11 +150,8 @@ switch (_type) do {
|
||||
if ( (time - _lastUpdate) > 5) then {
|
||||
call _object_damage;
|
||||
} else {
|
||||
|
||||
if(_object not in needUpdate_objects) then {
|
||||
diag_log format["DEBUG: Added to NeedUpdate=%1",_object];
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
diag_log format["DEBUG: Added to NeedUpdate=%1",_object];
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
};
|
||||
case "killed": {
|
||||
|
||||
@@ -98,7 +98,7 @@ diag_log "HIVE: Starting";
|
||||
clearWeaponCargoGlobal _object;
|
||||
clearMagazineCargoGlobal _object;
|
||||
|
||||
if (_object isKindOf "TentStorage" or _object isKindOf "VaultStorageLocked") then {
|
||||
if (_object isKindOf "TentStorage") then {
|
||||
_pos set [2,0];
|
||||
_object setpos _pos;
|
||||
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
|
||||
|
||||
Reference in New Issue
Block a user