SPLURT Station 13 - Modules - TypesDefine Details

code/datums/components/field_of_vision.dm

/datum/component/field_of_visionField of Vision component. Does totally what you probably think it does, ergo preventing players from seeing what's behind them.
FOV_ANGLE_CHECKByond doc is not entirely correct on the integrated arctan() proc. When both x and y are negative, the output is also negative, cycling clockwise instead of counter-clockwise. That's also why I am extensively using the SIMPLIFY_DEGREES macro here.
/atom/movable/fov_holderThe shadow cone's mask and visual images holder which can't locate inside the mob, lest they inherit the mob opacity and cause a lot of hindrance

Define Details

FOV_ANGLE_CHECK

Byond doc is not entirely correct on the integrated arctan() proc. When both x and y are negative, the output is also negative, cycling clockwise instead of counter-clockwise. That's also why I am extensively using the SIMPLIFY_DEGREES macro here.

Overall this is the main macro that calculates wheter a target is within the shadow cone angle or not.