From d6d6ed767437d0fab24b3e68662dc84cf8763316 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Sun, 26 Jun 2016 20:17:51 -0300 Subject: [PATCH] Make it work properly and support ceilings --- addons/tagging/functions/fnc_tag.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/tagging/functions/fnc_tag.sqf b/addons/tagging/functions/fnc_tag.sqf index 6b55730a94..165441f80e 100644 --- a/addons/tagging/functions/fnc_tag.sqf +++ b/addons/tagging/functions/fnc_tag.sqf @@ -72,8 +72,8 @@ if (_surfaceNormal vectorDotProduct (_endPosASL vectorDiff _startPosASL) > 0) t // Check if its a valid surface: big enough, reasonably plane private _v1 = vectorNormalized (_surfaceNormal vectorMultiply -1); private _v2 = vectorNormalized (_v1 vectorCrossProduct (_endPosASL vectorDiff _startPosASL)); -// If the surface is not horizontal (>25º), create vup _v2 pointing upward instead of away -if (_v1 select 2 > -0.42) then { +// If the surface is not horizontal (>20º), create vup _v2 pointing upward instead of away +if (abs (_v1 select 2) < 0.94) then { private _v3Temp = _v1 vectorCrossProduct [0, 0, 1]; _v2 = _v3Temp vectorCrossProduct _v1; };