Update _object_damage private array

Vanilla commits:

21ea5984c9

a13e7240dc
This commit is contained in:
ebaydayz
2016-10-14 16:07:03 -04:00
parent 5e51787e59
commit 6cf740e7d4
2 changed files with 6 additions and 1 deletions

View File

@@ -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];

View File

@@ -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;
};