/tg/ Station 13 - Modules - Types — Var Details - Proc Details

head

Vars

can_dismemberCan this head be dismembered normally?
custom_facial_hairThis owner's facial hair drawing; DNA and head snapshots are copied independently.
custom_hairThis owner's hair drawing; DNA and head snapshots are copied independently.
eyes_iconOverride of the eyes icon file, used for Vox and maybe more in the future - The future is now, with Teshari using it too
facial_hair_alphaFacial hair alpha
facial_hair_colorFacial hair color
facial_hairstyleFacial hair style
fixed_hair_colorAn override that cannot be cleared under any circumstances, affects both hair and facial hair
gradient_colorsGradient colors, if any
gradient_stylesGradient styles, if any
hair_alphaHair alpha
hair_colorHair colour and style
hairstyleHair style
head_flagsFlags related to appearance, such as hair, lips, etc
lip_colorLipstick color
lip_styleType of lipstick being used, basically
override_hair_colorAn override color that can be cleared later, affects both hair and facial hair
real_nameReplacement name
show_organs_on_examineDo we show the information about missing organs upon being examined? Defaults to TRUE, useful for Dullahan heads.
stored_lipstick_traitCurrent lipstick trait, if any (such as TRAIT_KISS_OF_DEATH)
teeth_countHow many teeth the head's species has, humans have 32 so that's the default. Used for a limit to dental pill implants.
worn_ears_offsetOffset to apply to equipment worn on the ears
worn_face_offsetOffset to apply to overlays placed on the face
worn_glasses_offsetOffset to apply to equipment worn on the eyes
worn_head_offsetOffset to apply to equipment worn on the head
worn_mask_offsetOffset to apply to equipment worn on the mouth

Procs

append_custom_appendage_overlaysAdds each appendage after the hair's paint: under-hat pieces on the hair layer, over-hat pieces above headwear.
append_custom_hair_paint_overlaysAdds the painted layer for one head target to hair_overlays: its blocker, the tinted paint (with its gradient), then its glow. Hair's appendages follow.
append_custom_paint_imageAdds one painted layer to hair_overlays where the head draws it: its blocker mask, the paint and its gradient, then its glow mask.
custom_appendage_masksThe worn hair masks that trim an appendage, or null when they hide it.
custom_head_drawingThe drawing this head carries for one head target.
custom_sprite_copy_base_hairCaptures native hair alone before its live gradient and opacity, on a private editor head only.
custom_sprite_facial_hair_accessoryThe accessory this head's facial hair draws with: the real one, or the nameless blank so a shaved face can carry paint.
custom_sprite_hair_accessoryThe accessory this head's hair draws with: the real one, or the nameless blank so a bald head can carry paint.
get_base_facial_hair_overlaysUsed in constructing the hair overlays - handles just facial hair
get_base_hair_overlaysUsed in constructing the hair overlays - handles just the hair on top of the head
get_custom_hair_paintEach head gets a private masked copy; the shared accessory cache is never painted.
get_debrain_overlayReturns an appropriate debrained overlay
get_eye_overlaysReturns a list of all eye related overlays, or an eyeless overlay if applicable
get_eyeless_overlayReturns an appropriate missing eyes overlay
get_gradient_overlayReturns an appropriate hair/facial hair gradient overlay
get_hair_gradient_colorGet the hair gradient color of a head. Defaults to black.
get_hair_gradient_styleGet the hair gradient style of a head. Defaults to "None". arguments:
get_hair_overlaysReturns a list of all hair/facial hair related overlays, or alternatively the debrained overlay if applicable
get_lips_overlaysReturns a list of all overlays associated with the lips
get_rendered_hair_colorResolves the colour this head's hair actually renders in.
set_custom_head_drawingReplaces the drawing this head carries for one head target.
set_overlay_hair_colorHelper for setting hair color of an overlay appropriately

Var Details

can_dismember

Can this head be dismembered normally?

custom_facial_hair

This owner's facial hair drawing; DNA and head snapshots are copied independently.

custom_hair

This owner's hair drawing; DNA and head snapshots are copied independently.

eyes_icon

Override of the eyes icon file, used for Vox and maybe more in the future - The future is now, with Teshari using it too

facial_hair_alpha

Facial hair alpha

facial_hair_color

Facial hair color

facial_hairstyle

Facial hair style

fixed_hair_color

An override that cannot be cleared under any circumstances, affects both hair and facial hair

gradient_colors

Gradient colors, if any

gradient_styles

Gradient styles, if any

hair_alpha

Hair alpha

hair_color

Hair colour and style

hairstyle

Hair style

head_flags

Flags related to appearance, such as hair, lips, etc

lip_color

Lipstick color

lip_style

Type of lipstick being used, basically

override_hair_color

An override color that can be cleared later, affects both hair and facial hair

real_name

Replacement name

show_organs_on_examine

Do we show the information about missing organs upon being examined? Defaults to TRUE, useful for Dullahan heads.

stored_lipstick_trait

Current lipstick trait, if any (such as TRAIT_KISS_OF_DEATH)

teeth_count

How many teeth the head's species has, humans have 32 so that's the default. Used for a limit to dental pill implants.

worn_ears_offset

Offset to apply to equipment worn on the ears

worn_face_offset

Offset to apply to overlays placed on the face

worn_glasses_offset

Offset to apply to equipment worn on the eyes

worn_head_offset

Offset to apply to equipment worn on the head

worn_mask_offset

Offset to apply to equipment worn on the mouth

Proc Details

append_custom_appendage_overlays

Adds each appendage after the hair's paint: under-hat pieces on the hair layer, over-hat pieces above headwear.

append_custom_hair_paint_overlays

Adds the painted layer for one head target to hair_overlays: its blocker, the tinted paint (with its gradient), then its glow. Hair's appendages follow.

append_custom_paint_image

Adds one painted layer to hair_overlays where the head draws it: its blocker mask, the paint and its gradient, then its glow mask.

Arguments:

custom_appendage_masks

The worn hair masks that trim an appendage, or null when they hide it.

As with a hairstyle's own pieces: an under-hat piece is trimmed only by masks whose strict coverage includes its zone, and an over-hat piece is never trimmed but is left out while any worn mask strictly covers its zone.

custom_head_drawing

The drawing this head carries for one head target.

custom_sprite_copy_base_hair

Captures native hair alone before its live gradient and opacity, on a private editor head only.

custom_sprite_facial_hair_accessory

The accessory this head's facial hair draws with: the real one, or the nameless blank so a shaved face can carry paint.

custom_sprite_hair_accessory

The accessory this head's hair draws with: the real one, or the nameless blank so a bald head can carry paint.

get_base_facial_hair_overlays

Used in constructing the hair overlays - handles just facial hair

get_base_hair_overlays

Used in constructing the hair overlays - handles just the hair on top of the head

get_custom_hair_paint

Each head gets a private masked copy; the shared accessory cache is never painted.

get_debrain_overlay

Returns an appropriate debrained overlay

get_eye_overlays

Returns a list of all eye related overlays, or an eyeless overlay if applicable

get_eyeless_overlay

Returns an appropriate missing eyes overlay

get_gradient_overlay

Returns an appropriate hair/facial hair gradient overlay

get_hair_gradient_color

Get the hair gradient color of a head. Defaults to black.

arguments:

get_hair_gradient_style

Get the hair gradient style of a head. Defaults to "None". arguments:

get_hair_overlays

Returns a list of all hair/facial hair related overlays, or alternatively the debrained overlay if applicable

get_lips_overlays

Returns a list of all overlays associated with the lips

get_rendered_hair_color

Resolves the colour this head's hair actually renders in.

Mirrors the precedence in /obj/item/bodypart/head/proc/set_overlay_hair_color, so trimmings match the hair they came off even when something has overridden it.

set_custom_head_drawing

Replaces the drawing this head carries for one head target.

set_overlay_hair_color

Helper for setting hair color of an overlay appropriately