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

vitals_reader

A wall mounted screen that showcases the vitals of a patient nearby.

Vars

advancedWhether we perform an advanced scan on examine or not
beep_cdCD between beeps
chemscanIf TRUE, also append a chemical scan to the readout
connectable_typecacheStatic typecache of things the vitals display can connect to.
connectedWhat machine are we talking to
connection_rangeRange which we can connect to machines, don't go crazy ok?
frameTypepath to spawn when deconstructed
last_reported_statThe last stat we beeped about
patientReference to the mob that is being tracked / scanned

Procs

construct_overlayHelper to construct an overlay for the vitals display
find_machineFind and connects to a nearby machine If prioritize_by_id is TRUE, will first try to find a machine with the same id_tag as this vitals reader
get_ekg_and_respReturns the EKG and Respiration overlays
get_humanoid_overlaysReturns all overlays to be shown when a humanoid patient is detected
get_simple_mob_overlaysReturns all overlays to be shown when a simple / basic animal patient is detected
percent_to_barConverts a percentage to a bar icon state
percent_to_colorConverts a percentage to a color
set_patientSets the passed mob as the active patient If there is already a patient, it will be unset first.
unset_patientUnset the current patient.
update_overlay_on_signalSignal proc to update the display when a signal is received.

Var Details

advanced

Whether we perform an advanced scan on examine or not

beep_cd

CD between beeps

chemscan

If TRUE, also append a chemical scan to the readout

connectable_typecache

Static typecache of things the vitals display can connect to.

connected

What machine are we talking to

connection_range

Range which we can connect to machines, don't go crazy ok?

frame

Typepath to spawn when deconstructed

last_reported_stat

The last stat we beeped about

patient

Reference to the mob that is being tracked / scanned

Proc Details

construct_overlay

Helper to construct an overlay for the vitals display

find_machine

Find and connects to a nearby machine If prioritize_by_id is TRUE, will first try to find a machine with the same id_tag as this vitals reader

get_ekg_and_resp

Returns the EKG and Respiration overlays

get_humanoid_overlays

Returns all overlays to be shown when a humanoid patient is detected

get_simple_mob_overlays

Returns all overlays to be shown when a simple / basic animal patient is detected

percent_to_bar

Converts a percentage to a bar icon state

percent_to_color

Converts a percentage to a color

set_patient

Sets the passed mob as the active patient If there is already a patient, it will be unset first.

unset_patient

Unset the current patient.

update_overlay_on_signal

Signal proc to update the display when a signal is received.