readd precise positions + Install Packs

By a failure, precise positioning was missing.
So Buildings / Storages / Vehicles can move a bit after first restart after build
This commit is contained in:
He-Man 2019-11-24 21:51:59 +01:00
parent 297b2c0473
commit 7e07bebd20
5 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ if !(isNull _this) then {
_cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig;
_this setDamage 0;
_class = typeOf _this;
_worldspace = [getposworld _this, vectordir _this, vectorup _this, true];
_worldspace = [getposworld _this call EPOCH_precisionPos, vectordir _this, vectorup _this, true];
_objHiveKey = format["%1:%2", (call EPOCH_fn_InstanceID), _objSlot];
_animPhases = [];
{

View File

@ -32,7 +32,7 @@ if (!isNull _vehicle) then {
_colorSlot = _vehicle getVariable ["STORAGE_TEXTURE",0];
_storageOwners = _vehicle getVariable["STORAGE_OWNERS",[]];
_locked = if (_vehicle getVariable["EPOCH_Locked", true]) then {1} else {-1};
_worldspace = [getposworld _vehicle, vectordir _vehicle, vectorup _vehicle, true];
_worldspace = [getposworld _vehicle call EPOCH_precisionPos, vectordir _vehicle, vectorup _vehicle, true];
_VAL = [_class, _worldspace, _damage, _inventory, _colorSlot, _storageOwners, _locked];
["Storage", _vehHiveKey, EPOCH_expiresBuilding, _VAL] call EPOCH_fnc_server_hiveSETEX;

View File

@ -37,7 +37,7 @@ if (!isNull _vehicle) then {
_Textures = getObjectTextures _vehicle;
};
_VAL = [typeOf _vehicle,[getposworld _vehicle,vectordir _vehicle,vectorup _vehicle,true],damage _vehicle,_hitpoints,fuel _vehicle,_inventory,[true,magazinesAllTurrets _vehicle],_colorSlot,_baseType, getPlateNumber _vehicle, _Textures];
_VAL = [typeOf _vehicle,[getposworld _vehicle call EPOCH_precisionPos,vectordir _vehicle,vectorup _vehicle,true],damage _vehicle,_hitpoints,fuel _vehicle,_inventory,[true,magazinesAllTurrets _vehicle],_colorSlot,_baseType, getPlateNumber _vehicle, _Textures];
["Vehicle", _vehHiveKey, EPOCH_expiresVehicle, _VAL] call EPOCH_fnc_server_hiveSETEX;
};
};