mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Fix damage handle on upgraded vehicles
Thx to mmrsz for letting me know
This commit is contained in:
@@ -66,7 +66,7 @@ diag_log ("PUBLISH: Attempt " + str(_object));
|
|||||||
_dir = _worldspace select 0;
|
_dir = _worldspace select 0;
|
||||||
_uid = _worldspace call dayz_objectUID2;
|
_uid = _worldspace call dayz_objectUID2;
|
||||||
|
|
||||||
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, 0 , _characterID, _worldspace, _inv, _newHitpoints, _damage,_uid];
|
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, _damage , _characterID, _worldspace, _inv, _newHitpoints, _fuel,_uid];
|
||||||
#ifdef OBJECT_DEBUG
|
#ifdef OBJECT_DEBUG
|
||||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||||
#endif
|
#endif
|
||||||
@@ -120,6 +120,7 @@ if (_outcome != "PASS") then {
|
|||||||
_object setDir _dir;
|
_object setDir _dir;
|
||||||
_object setPosATL _location;
|
_object setPosATL _location;
|
||||||
_object setVectorUp surfaceNormal _location;
|
_object setVectorUp surfaceNormal _location;
|
||||||
|
_object setDamage _damage;
|
||||||
|
|
||||||
[_weapons,_magazines,_backpacks,_object] call fn_addCargo;
|
[_weapons,_magazines,_backpacks,_object] call fn_addCargo;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user