From db3f816843efd0d4e0d9996e5264dd64e3f79c31 Mon Sep 17 00:00:00 2001 From: Nou Date: Sat, 11 Apr 2015 20:13:52 -0700 Subject: [PATCH] Reduce default number of rays, make it an argument for shootCone. Accuracy is still the same with 3 to 8, just better FPS. Rangefinders should probably use a higher number (8 is good, 24+1 rays in total per shot). --- addons/laser/functions/fnc_shootCone.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/laser/functions/fnc_shootCone.sqf b/addons/laser/functions/fnc_shootCone.sqf index ff719cbf4a..559a96dc27 100644 --- a/addons/laser/functions/fnc_shootCone.sqf +++ b/addons/laser/functions/fnc_shootCone.sqf @@ -1,5 +1,5 @@ #include "script_component.hpp" -// #define DEBUG_MODE_FULL +#define DEBUG_MODE_FULL private ["_divergence","_pos","_vec","_longestReturn","_shortestReturn","_resultPositions","_p1","_p2","_p","_v","_cp","_vecRotateMap","_result", "_resultPos","_distance","_count","_pos2","_radOffset","_offset","_offsetPos","_offsetVector"]; _divergence = 0.3; @@ -35,7 +35,7 @@ if(!isNil "_resultPos") then { drawLine3D [ASLtoATL _pos, ASLtoATL _resultPos, [1,0,0,1]]; #endif }; -_count = 8; +_count = 3; _pos2 = _pos vectorAdd (_vec vectorMultiply 1000); {