fov_handler ![code/datums/components/fov_handler.dm 2](git.png)
Component which handles Field of View masking for clients. FoV attributes are at /mob/living
Vars | |
applied_mask | Whether we are applying the masks now |
---|---|
blocker_mask | The blocker mask applied to a client's screen |
current_fov_x | Currently applied x size of the fov masks |
current_fov_y | Currently applied y size of the fov masks |
fov_angle | The angle of the mask we are applying |
visual_shadow | The shadow mask applied to a client's screen |
Procs | |
mob_logout | When a mob logs out, delete the component |
on_dir_change | When a direction of the user changes, so do the masks |
update_fov_size | Updates the size of the FOV masks by comparing them to client view size. |
update_mask | Updates the mask application to client by checking stat and eye |
Var Details
applied_mask ![code/datums/components/fov_handler.dm 8](git.png)
Whether we are applying the masks now
blocker_mask ![code/datums/components/fov_handler.dm 12](git.png)
The blocker mask applied to a client's screen
current_fov_x ![code/datums/components/fov_handler.dm 4](git.png)
Currently applied x size of the fov masks
current_fov_y ![code/datums/components/fov_handler.dm 6](git.png)
Currently applied y size of the fov masks
fov_angle ![code/datums/components/fov_handler.dm 10](git.png)
The angle of the mask we are applying
visual_shadow ![code/datums/components/fov_handler.dm 16](git.png)
The shadow mask applied to a client's screen
Proc Details
mob_logout
When a mob logs out, delete the component
on_dir_change
When a direction of the user changes, so do the masks
update_fov_size
Updates the size of the FOV masks by comparing them to client view size.
update_mask
Updates the mask application to client by checking stat
and eye