vitals_reader 
A wall mounted screen that showcases the vitals of a patient nearby.
Vars | |
| 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 |
Procs | |
| 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. |
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
- state_to_use - icon state to use, required
- color_to_use - color to use, optional
- y_offset - offset to apply to the y position of the overlay, defaults to 0
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
- hp_color - color being used for general, overrall health
get_humanoid_overlays
Returns all overlays to be shown when a humanoid patient is detected
- hp_color - color being used for general, overrall health
get_simple_mob_overlays
Returns all overlays to be shown when a simple / basic animal patient is detected
- hp_color - color being used for general, overrall health
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.