mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
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:
parent
297b2c0473
commit
7e07bebd20
Binary file not shown.
Binary file not shown.
@ -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 = [];
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user