mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
Retire cone and pole plot previews in favor of dome
Thanks @oiad for pointing this out. Poles are not used for previewing anymore. Cones do not give as much information as the dome. The dome is visible at night and under night vision too.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
// Remove preview build by RimBlock (http://epochmod.com/forum/index.php?/user/12612-rimblock/)
|
||||
private ["_distance","_plotPole","_findNearestPoles","_validMarkers","_isNearPlot","_poleInv"];
|
||||
|
||||
_distance = (DZE_PlotPole select 0) + 5;
|
||||
|
||||
// check for near plot
|
||||
_plotPole = nearestobject [(vehicle player),"Plastic_Pole_EP1_DZ"];
|
||||
_findNearestPoles = (position _plotpole) nearEntities ["Land_coneLight", _distance];
|
||||
_validMarkers = [];
|
||||
_isNearPlot = 0;
|
||||
|
||||
{
|
||||
_poleInv = _x getVariable ["inventory",[]];
|
||||
|
||||
if (_poleInv select 0 == "PPMarker") then {
|
||||
_validMarkers set [count _validMarkers,_x];
|
||||
};
|
||||
} count _findNearestPoles;
|
||||
|
||||
_IsNearPlot = count _validMarkers;
|
||||
|
||||
// If no plot poles found with ppMarker in the inventory.
|
||||
if (_IsNearPlot > 0) then{
|
||||
{
|
||||
diag_log format["Object remove plot radius: [Destroying object: %1]",_x];
|
||||
deleteVehicle _x;
|
||||
} count _validMarkers;
|
||||
};
|
||||
@@ -1,23 +0,0 @@
|
||||
// Build preview adopted from Axe Cop (@vos) Base Destruction Script
|
||||
// Amended by RimBlock (http://epochmod.com/forum/index.php?/user/12612-rimblock/) to allow plot radius removal.
|
||||
private ["_location","_object","_i","_nearPlotPole","_lightArray","_BD_radius","_BD_center","_color"];
|
||||
|
||||
// global vars
|
||||
_nearPlotPole = nearestObject [player, "Plastic_Pole_EP1_DZ"];
|
||||
_lightArray = [];
|
||||
|
||||
//"privatized" center variable
|
||||
_BD_radius = DZE_PlotPole select 0;
|
||||
_BD_center = [_nearPlotPole] call FNC_getPos;
|
||||
|
||||
_color = "#(argb,8,8,3)color(0.99,0.65,0.06,1,ca)"; //dark orange
|
||||
|
||||
// circle
|
||||
for "_i" from 0 to 360 step (450 / _BD_radius) do {
|
||||
_location = [(_BD_center select 0) + ((cos _i) * _BD_radius), (_BD_center select 1) + ((sin _i) * _BD_radius), (_BD_center select 2) - 0.18];
|
||||
|
||||
_object = createVehicle ["Land_coneLight", _location, [], 0, "CAN_COLLIDE"];
|
||||
_object setVariable ["Inventory", ["PPMarker"],true];
|
||||
_object enableSimulation false;
|
||||
_object setpos _location;
|
||||
};
|
||||
Reference in New Issue
Block a user