mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-28 10:41:50 +03:00
Update vanilla building
Vanilla commits applied:44f2552ff2213a333ce5423d53299d43bce6554ff551cdac6e
This commit is contained in:
@@ -17,6 +17,8 @@ _keepOnSlope = 0 == (getNumber (configFile >> "CfgVehicles" >> _classname >> "ca
|
||||
|
||||
Dayz_constructionContext set [ 4, false ]; // Stop the construction mode, cf. player_build.sqf
|
||||
|
||||
//if (count Dayz_constructionContext < 5) then { Dayz_constructionContext set [ 5, false ]; // };
|
||||
|
||||
if (_build) then {
|
||||
_location = getPosATL _ghost;
|
||||
_direction = getDir _ghost;
|
||||
@@ -24,6 +26,8 @@ if (_build) then {
|
||||
|
||||
_object setDir _direction;
|
||||
|
||||
diag_log (Dayz_constructionContext);
|
||||
|
||||
if ((Dayz_constructionContext select 5) or (_keepOnSlope)) then {
|
||||
_object setVectorUp surfaceNormal _location;
|
||||
_location set [2,0];
|
||||
|
||||
Reference in New Issue
Block a user