mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 05:45:36 +03:00
Added a special comment inside in_view_cone
This commit is contained in:
parent
7124f8bd2c
commit
309bc2dcaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user