mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update _object_damage private array
Vanilla commits:21ea5984c9a13e7240dc
This commit is contained in:
@@ -252,6 +252,7 @@ if (isNil "keyboard_keys") then {
|
||||
_handled = true;
|
||||
r_interrupt = true;
|
||||
};
|
||||
|
||||
if (animationState player in ["bunnyhopunarmed","bunnyhoprifle"]) then {
|
||||
//Fixes invisible weapon switch glitch if double tapping vault with no weapon in hands
|
||||
_handled = true;
|
||||
@@ -275,6 +276,7 @@ if (isNil "keyboard_keys") then {
|
||||
_block = {
|
||||
_handled = true;
|
||||
};
|
||||
|
||||
_addArray = {
|
||||
{
|
||||
keyboard_keys set [_x, _this select 1];
|
||||
|
||||
@@ -109,11 +109,12 @@ _object_inventory = {
|
||||
|
||||
_object_damage = {
|
||||
//Allow dmg process
|
||||
private ["_hitpoints","_array","_hit","_selection","_key","_damage","_allFixed"];
|
||||
private ["_hitpoints","_array","_hit","_selection","_key","_damage","_allFixed","_forced","_recorddmg"];
|
||||
_hitpoints = _object call vehicle_getHitpoints;
|
||||
_damage = damage _object;
|
||||
_array = [];
|
||||
_allFixed = true;
|
||||
|
||||
{
|
||||
_hit = [_object,_x] call object_getHit;
|
||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
||||
@@ -127,6 +128,7 @@ _object_damage = {
|
||||
} forEach _hitpoints;
|
||||
|
||||
if (_allFixed) then {_object setDamage 0;};
|
||||
|
||||
if (_forced) then {
|
||||
if (_object in needUpdate_objects) then {needUpdate_objects = needUpdate_objects - [_object];};
|
||||
_recorddmg = true;
|
||||
@@ -147,6 +149,7 @@ _object_damage = {
|
||||
} else {
|
||||
_key = format["CHILD:306:%1:",_objectID] + str _array + ":" + str _damage + ":";
|
||||
};
|
||||
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user