From 82f475c7a54382ec4eede3ddcb865491d1c2cc87 Mon Sep 17 00:00:00 2001 From: HARLAN Date: Wed, 11 Dec 2013 13:34:25 -0500 Subject: [PATCH] changed plot preview to Plastic_Pole_EP1, removed it as an addaction #846 --- .../compile/object_showPlotRadius.sqf | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/SQF/dayz_code/compile/object_showPlotRadius.sqf b/SQF/dayz_code/compile/object_showPlotRadius.sqf index c13bf728f..26db786b4 100644 --- a/SQF/dayz_code/compile/object_showPlotRadius.sqf +++ b/SQF/dayz_code/compile/object_showPlotRadius.sqf @@ -10,38 +10,13 @@ _nearPlotPole = nearestObject [player, "Plastic_Pole_EP1_DZ", 3]; _BD_radius = 30; _BD_center = getPos _nearPlotPole; -player removeAction s_player_plotpole_preview; -s_player_plotpole_preview = -1; - _objects = []; // circle for "_i" from 0 to 360 step (270 / _BD_radius) do { _location = [(_BD_center select 0) + ((cos _i) * _BD_radius), (_BD_center select 1) + ((sin _i) * _BD_radius), _BD_center select 2]; - _object = createVehicleLocal ["WoodLargeWall_Preview_DZ", _location, [], 0, "CAN_COLLIDE"]; + _object = createVehicleLocal ["Plastic_Pole_EP1", _location, [], 0, "CAN_COLLIDE"]; _dir = ((_BD_center select 0) - (_location select 0)) atan2 ((_BD_center select 1) - (_location select 1)); _object setDir _dir; _objects set [count _objects, _object]; }; - -// top - _location = [_BD_center select 0, _BD_center select 1, (_BD_center select 2) + _BD_radius]; - _object = createVehicleLocal ["WoodFloor_Preview_DZ", _location, [], 0, "CAN_COLLIDE"]; - _objects set [count _objects, _object]; - - -_previewCounter = 30; -while {_previewCounter > 0} do { - cutText [format["Radius preview active for %1 seconds", _previewCounter], "PLAIN DOWN"]; - _previewCounter = _previewCounter - 1; - sleep 1; - }; - -// sleep now done in the while loop -// sleep 30; - - { - deleteVehicle _x; - } forEach _objects; - -s_player_plotpole_preview = -1;