/tg/ Station 13 - Modules - TypesVar Details - Proc Details

fov_handler

Component which handles Field of View masking for clients. FoV attributes are at /mob/living

Vars

applied_maskWhether we are applying the masks now
blocker_maskThe blocker mask applied to a client's screen
current_fov_xCurrently applied x size of the fov masks
current_fov_yCurrently applied y size of the fov masks
fov_angleThe angle of the mask we are applying
visual_shadowThe shadow mask applied to a client's screen

Procs

mob_logoutWhen a mob logs out, delete the component
on_dir_changeWhen a direction of the user changes, so do the masks
update_fov_sizeUpdates the size of the FOV masks by comparing them to client view size.
update_maskUpdates the mask application to client by checking stat and eye

Var Details

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

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