From 309bc2dcaa2abcc54237723e89a09b7e07708d9a Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 11 Mar 2007 04:55:38 +0000 Subject: [PATCH] Added a special comment inside in_view_cone --- dlls/engine/engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/engine/engine.cpp b/dlls/engine/engine.cpp index d2c2bc2b..15a6d464 100755 --- a/dlls/engine/engine.cpp +++ b/dlls/engine/engine.cpp @@ -830,6 +830,7 @@ static cell AMX_NATIVE_CALL in_view_cone(AMX *amx, cell *params) flDot = DotProduct(vecLOS, vecForward); + // Dividing fov by two and then converting it to radians - don't ask about this ever again, please :\ if (flDot >= cos(pEdictSrc->v.fov * (M_PI / 360))) return 1; else