mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Merge pull request #1988 from BigEgg17/master
Added option to limit build height
This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
[NEW] The journal and dayz_survived variable now contain actual play time [array] instead of days since the character was created [number].
|
||||
[NEW] Added secondary iron sight to CZ550 and bolt animations to CZ550 and LeeEnfield by @Streatman
|
||||
[NEW] Added some basic compatibility for falconsan's Ruegen map (beta version released February 2016)
|
||||
[NEW] Admins can now define what parts are returned from modular building parts, see configVariables.sqf/DZE_modularConfig @oiad @BigEgg
|
||||
[NEW] Admins can now define what parts are returned from modular building parts, see configVariables.sqf/DZE_modularConfig @oiad @BigEgg17
|
||||
[NEW] Basic server-side authentication for server_deleteObj, server owners and script makers should review the changes if using PVDZ_obj_Destroy/server_deleteObj and verify custom/redefined code is compliant with these changes https://github.com/EpochModTeam/DayZ-Epoch/commit/8035df0ba0cd928b84085e288c5cb88260870a3e
|
||||
[NEW] BAF_L85A2_RIS_TWS_DZ to emulate the old behavior of the now NV only BAF_L85A2_RIS_CWS. Server owners must add the weapon on their own #1983
|
||||
[NEW] Admins can now define a maximum build height, see configVariables.sqf/DZE_BuildHeightLimit. @BigEgg17
|
||||
|
||||
[UPDATED] Zombie pathing. Zeds should now run more direct to players.
|
||||
[UPDATED] The RIS attachment can be removed from the SA58_RIS_DZ now. @LunaCB
|
||||
|
||||
@@ -357,6 +357,20 @@ if (_canBuild select 0) then {
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if (DZE_BuildHeightLimit > 0 && abs(_objHDiff) > DZE_BuildHeightLimit) exitWith {
|
||||
_isOk = false;
|
||||
_cancel = true;
|
||||
_reason = format[localize "STR_EPOCH_PLAYER_168",DZE_BuildHeightLimit];
|
||||
detach _object;
|
||||
deleteVehicle _object;
|
||||
if (_VectorWorkAround) then {
|
||||
detach _object2;
|
||||
deleteVehicle _object2;
|
||||
};
|
||||
detach _objectHelper;
|
||||
deleteVehicle _objectHelper;
|
||||
};
|
||||
|
||||
if (player getVariable["combattimeout",0] >= diag_tickTime) exitWith {
|
||||
_isOk = false;
|
||||
|
||||
@@ -97,6 +97,8 @@ if (!_canBuild) exitWith {
|
||||
[_canBuild, _isPole];
|
||||
};
|
||||
|
||||
if (DZE_BuildHeightLimit > 0 && ((getPosATL (vehicle player)) select 2) > DZE_BuildHeightLimit) exitWith {dayz_actionInProgress = false; format [localize "STR_EPOCH_PLAYER_168", DZE_BuildHeightLimit] call dayz_rollingMessages; [false, _isPole];};
|
||||
|
||||
// Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit
|
||||
_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"];
|
||||
_center = if (isNull _nearestPole) then {_pos} else {_nearestPole};
|
||||
|
||||
@@ -30,6 +30,7 @@ DZE_SafeZoneNoBuildItems = []; // Array of object class names not allowed to be
|
||||
DZE_SafeZoneNoBuildDistance = 150; // Distance from safe zones listed above to disallow building near.
|
||||
DZE_NoBuildNear = []; //Array of object class names that are blacklisted to build near. i.e ["Land_Mil_ControlTower","Land_SS_hangar"] etc.
|
||||
DZE_NoBuildNearDistance = 150; // Distance from blacklisted objects to disallow building near.
|
||||
DZE_BuildHeightLimit = 0; // 0 = No building height limit | >0 = Height limit in meters | Changing this to 30 would limit the maximum built height to 30 meters.
|
||||
DZE_GodModeBaseExclude = []; //Array of object class names excluded from the god mode bases feature
|
||||
DZE_salvageLocked = true; //Enable or disable salvaging of locked vehicles, useful for stopping griefing on locked vehicles.
|
||||
DZE_DisabledChannels = [(localize "str_channel_side"),(localize "str_channel_global"),(localize "str_channel_command")]; //List of disabled voice channels. Other channels are: "str_channel_group","str_channel_direct","str_channel_vehicle"
|
||||
|
||||
@@ -11948,6 +11948,9 @@
|
||||
<German>Du kannst hier kein(e) %1 bauen. Du befindest dich innerhalb von %2 Metern zu einem Objekt (%3).</German>
|
||||
<Russian>Нельзя построить %1 в пределах %2м от %3.</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_PLAYER_168">
|
||||
<English>Building is restricted above %1 meter(s).</English>
|
||||
</Key>
|
||||
|
||||
<Key ID="STR_EPOCH_PLAYER_173">
|
||||
<English>Dog consumed %1, and is now tamed.</English>
|
||||
|
||||
Reference in New Issue
Block a user