mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-13 13:21:57 +03:00
Update vanilla fence building
Vanilla commits applied: https://github.com/DayZMod/DayZ/commit/e88a5c42bc86f91d254104b13064f83a2dd23a76 https://github.com/DayZMod/DayZ/commit/fe9564351108ae72496592b3bd741a5064b84ccd https://github.com/DayZMod/DayZ/commit/9a82b8307c523046773b9cd3440c387c7155d70e https://github.com/DayZMod/DayZ/commit/5a305198c70b1c3bdf7fbf055f550cf3a2d14001 https://github.com/DayZMod/DayZ/commit/be872601c96e526cb443b6ad47eb71fdf6618775 https://github.com/DayZMod/DayZ/commit/44a25b1b4a86d17ecf0780ba322513d756d1cbb1 https://github.com/DayZMod/DayZ/commit/7bfeab3c13b3835c5f134b39a15c8eae948a21b7 https://github.com/DayZMod/DayZ/commit/cc5f02a41ae7cba9d0312463caf48f46eed9cdad
This commit is contained in:
@@ -21,7 +21,8 @@ if (_build) then {
|
||||
_location = getPosATL _ghost;
|
||||
_direction = getDir _ghost;
|
||||
_object = createVehicle [_classname, getMarkerpos "respawn_west", [], 0, "CAN_COLLIDE"];
|
||||
if (_object isKindOf "DZ_buildables") then { _object allowDamage false; };
|
||||
|
||||
// if (_object isKindOf "DZ_buildables") then { _object allowDamage false; };
|
||||
_object setDir _direction;
|
||||
if ((Dayz_constructionContext select 5) or _keepOnSlope) then {
|
||||
_object setVectorUp surfaceNormal _location;
|
||||
@@ -30,6 +31,7 @@ if (_build) then {
|
||||
_object setVectorUp [0,0,1];
|
||||
if (_location select 2 == 0) then { _location set [2, -0.01]; };
|
||||
};
|
||||
|
||||
deleteVehicle _ghost;
|
||||
|
||||
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
|
||||
@@ -42,7 +44,7 @@ if (_build) then {
|
||||
player reveal _object;
|
||||
|
||||
_variables = [];
|
||||
|
||||
|
||||
if (_object iskindof "DZ_buildables") then {
|
||||
_passcode = [floor(random 10),floor(random 10),floor(random 10),floor(random 10)];
|
||||
_object setVariable ["ownerArray",[getPlayerUID player],true];
|
||||
@@ -77,6 +79,7 @@ if (_build) then {
|
||||
_object setVariable ["characterID",dayz_characterID,true];
|
||||
PVDZ_obj_Publish = [dayz_characterID,_object,[round _direction, _location], _variables];
|
||||
publicVariableServer "PVDZ_obj_Publish";
|
||||
|
||||
diag_log [diag_ticktime, __FILE__, "New Networked object, request to save to hive. PVDZ_obj_Publish:", PVDZ_obj_Publish];
|
||||
|
||||
format[localize "str_build_01",_text] call dayz_rollingMessages;
|
||||
|
||||
@@ -131,7 +131,7 @@ if (!_realObjectStillThere) then {
|
||||
deleteVehicle _cursorTarget;
|
||||
if (getNumber(_parent >> "scope")==2) then {
|
||||
_object = createVehicle [_upgrade, getMarkerpos "respawn_west", [], 0, "CAN_COLLIDE"];
|
||||
if (_object isKindOf "DZ_buildables") then { _object allowDamage false; };
|
||||
//if (_object isKindOf "DZ_buildables") then { _object allowDamage false; };
|
||||
_object setVectorDirAndUp _vector;
|
||||
_object setPosATL _pos;
|
||||
_puid = getPlayerUID player;
|
||||
|
||||
@@ -114,7 +114,7 @@ if (abs(((_vector select 1) select 2) - 1) > 0.001) then { _pos set [2,0]; };
|
||||
//diag_log [ "dir/angle/pos - reset elevation if angle is straight", _dir, _vector, _pos];
|
||||
|
||||
_object = createVehicle [_upgradeType, getMarkerpos "respawn_west", [], 0, "CAN_COLLIDE"];
|
||||
if (_object isKindOf "DZ_buildables") then { _object allowDamage false; };
|
||||
//if (_object isKindOf "DZ_buildables") then { _object allowDamage false; };
|
||||
_object setVectorDirAndUp _vector;
|
||||
_object setPosATL _pos;
|
||||
_puid = getPlayerUID player;
|
||||
|
||||
Reference in New Issue
Block a user