mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-15 20:52:56 +03:00
1.7.5.M1D7
This commit is contained in:
@@ -53,6 +53,11 @@ diag_log "HIVE: Starting";
|
||||
_ownerID = _x select 3;
|
||||
|
||||
_worldspace = _x select 4;
|
||||
_intentory= _x select 5;
|
||||
_hitPoints= _x select 6;
|
||||
_fuel = _x select 7;
|
||||
_damage = _x select 8;
|
||||
|
||||
_dir = 0;
|
||||
_pos = [0,0,0];
|
||||
_wsDone = false;
|
||||
@@ -71,11 +76,6 @@ diag_log "HIVE: Starting";
|
||||
diag_log ("MOVED OBJ: " + str(_idKey) + " of class " + _type + " to pos: " + str(_pos));
|
||||
};
|
||||
|
||||
_intentory= _x select 5;
|
||||
_hitPoints= _x select 6;
|
||||
_fuel = _x select 7;
|
||||
_damage = _x select 8;
|
||||
|
||||
if (_damage < 1) then {
|
||||
diag_log format["OBJ: %1 - %2", _idKey,_type];
|
||||
|
||||
@@ -88,7 +88,11 @@ diag_log "HIVE: Starting";
|
||||
clearWeaponCargoGlobal _object;
|
||||
clearMagazineCargoGlobal _object;
|
||||
|
||||
_object setpos _pos;
|
||||
if (_object isKindOf "TentStorage") then {
|
||||
_pos set [2,0];
|
||||
_object setpos _pos;
|
||||
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
|
||||
};
|
||||
_object setdir _dir;
|
||||
_object setDamage _damage;
|
||||
|
||||
@@ -157,11 +161,7 @@ diag_log "HIVE: Starting";
|
||||
} forEach _hitpoints;
|
||||
_object setvelocity [0,0,1];
|
||||
_object setFuel _fuel;
|
||||
if (getDammage _object == 1) then {
|
||||
_position = ([(getPosATL _object),0,100,10,0,500,0] call BIS_fnc_findSafePos);
|
||||
_object setPosATL _position;
|
||||
};
|
||||
|
||||
|
||||
if(_ownerID != "0") then {
|
||||
_object setvehiclelock "locked";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user