mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
Should fix building issues with player sliding
The change in module_build will only fix items that d ono have an offset set in the config. BoundingBox can be a bit generous but the player should be able to work with any overestimation in size.
This commit is contained in:
@@ -108,9 +108,6 @@ if (_canBuild select 0) then {
|
||||
};
|
||||
|
||||
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset");
|
||||
if((count _offset) <= 0) then {
|
||||
_offset = [0,1.5,0];
|
||||
};
|
||||
|
||||
_location = [0,0,0];
|
||||
_isOk = true;
|
||||
@@ -124,6 +121,10 @@ if (_canBuild select 0) then {
|
||||
|
||||
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
if((count _offset) <= 0) then {
|
||||
_offset = [0,(abs(((boundingBox _object)select 0) select 1)),0];
|
||||
};
|
||||
|
||||
_object attachTo [player,_offset];
|
||||
|
||||
_position = getPosATL _object;
|
||||
|
||||
Reference in New Issue
Block a user