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

human

Any humanoid (non-Xeno) mob, such as humans, plasmamen, lizards.

Vars

afk_theftsWhen an braindead player has their equipment fiddled with, we log that info here for when they come back so they know who took their ID while they were DC'd for 30 seconds
blood_in_handsHow many "units of blood" we have on our hands
braThe selected bra.
bra_colorColor of the bra.
can_ride_typecacheWhat types of mobs are allowed to ride/buckle to this mob
coretemperatureThe core temperature of the human compaired to the skin temp of the body
eye_color_heterochromaticVar used to keep track of a human mob having a heterochromatic right eye. To ensure prefs don't overwrite shit
grad_colorColours used for hair and facial hair gradients.
grad_styleStyles used for hair and facial hair gradients.
hair_alphaAlpha of the hair. Takes precedent over species hair_alpha if non-null.
heat_exposure_stacksExposure to damaging heat levels increases stacks, stacks clean over time when temperatures are lower. Stack is consumed to add a wound.
mob_heightHeight of the mob
mutant_renderkeyRender key for mutant bodyparts, utilized to reduce the amount of re-rendering
oversized_piggydamBase damage for oversized piggyback riding.
oversized_piggyknockParalyze time for oversized piggyback riding in deciseconds. (10 deciseconds = 1 second)
oversized_piggywound_chanceChance for oversized to wound someone smaller, if they try to piggyback ride them.
physiqueWhich body type to use
refractory_periodUsed to prevent nightmare scenarios.
socks_colorColor of the socks
tguiThe Examine Panel TGUI.
try_hide_mutant_partsA list of mutant parts the human is trying to hide, read from mutant_renderkey
undershirt_colorColor of the undershirt
underwear_visibilityFlags for showing/hiding underwear, toggleabley by a verb

Procs

adjust_arousalAdjusts the parent human's arousal value based off the value assigned to arous.
adjust_coretemperatureAdjust the core temperature of a mob
apply_height_filtersApplies a filter to an appearance according to mob height
apply_height_offsetsUsed in some circumstances where appearances can get cut off from the mob sprite from being too tall
attack_alienSKYRAT MODULE SKYRAT_XENO_REDO
burn_clothingUsed by fire code to damage worn items.
check_if_off_dutyChecks is the parent mob is currently off duty. Returns FALSE if the mob isn't clocked out.
check_organ_damageReturns the damage of the organ_to_check, if the organ isn't there, the proc returns 100.
check_pocket_weghtSignal proc for COMSIG_ATOM_CONTENTS_WEIGHT_CLASS_CHANGED to check if an item is suddenly too heavy for our pockets
check_reflectReflection checks for anything in your l_hand, r_hand, or wear_suit based on the reflection chance of the object
clean_faceCalled on the COMSIG_COMPONENT_CLEAN_FACE_ACT signal
copy_clothing_prefscopies over clothing preferences like underwear to another human
crabizeTurns the source atom into a crab crab, the peak of evolutionary design.
do_cprPerforms CPR on the target after a delay.
electrocute_actCalculates the siemens coeff based on clothing and species, can also restart hearts.
equip_outfit_and_loadoutEquips this mob with a given outfit and loadout items as per the passed preferences.
equip_species_outfitA version of equipOutfit that overrides passed in outfits with their entry on the species' outfit override registry
fan_hud_set_fandomFAN HUDs! For identifying other fans on-sight.
find_nifsoftChecks to see if a human with a NIF has the nifsoft_to_find type of NIFSoft installed?
force_sayMakes the player force say what's in their current input box.
format_scarsFor use formatting all of the scars this human has for saving for persistent scarring, returns a string with all current scars/missing limb amputation scars for saving or loading purposes
get_body_temp_normalget_body_temperature Returns the body temperature with any modifications applied
get_clothing_on_partGet all the clothing on a specific body part
get_equipped_itemsUsed to return a list of equipped items on a human mob; does not by default include held items, see include_flags
get_majority_bodypart_damage_descreturns a list of "damtype" => damage description based off of which bodypart description is most common used in human examines
get_mob_heightGetter for mob height
get_name_partFrom compose_message(). Snowflake code converted into its own signal proc
get_num_feetGets the number of feet the human has.
get_taur_modeGet a human's taur mode in a standardized way.
give_emote_overlayCreates a new emote bodypart overlay and applies it to the human. The overlay can be removed by simply deleting the returned overlay.
handle_bloodBLOOD SYSTEM
handle_environmentEnvironment handlers for species
hardset_dnaSets the DNA of the mob to the given DNA.
has_anusReturns true if the human has an accessible anus for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_armsReturns true if the human has a accessible feet for the parameter, returning the number of feet the human has if they do. Accepts any of the REQUIRE_GENITAL_ defines.
has_ballsReturns true if the human has a accessible balls for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_breastsReturns true if the human has a accessible breasts for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_earsReturns true if the human has a accessible ears for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_eyesReturns true if the human has accessible eyes for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_feetReturns true if the human has a accessible feet for the parameter, returning the number of feet the human has if they do. Accepts any of the REQUIRE_GENITAL_ defines.
has_penisReturns true if the human has an accessible penis for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_tailReturns true if the human has accessible tail for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
has_vaginaReturns true if the human has an accessible vagina for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.
increment_scar_slotWhen we're joining the game in /mob/dead/new_player/proc/create_character, we increment our scar slot then store the slot in our mind datum.
infuse_organAttempt to replace/add-to the occupant's organs with "mutated" equivalents. Returns TRUE on success, FALSE on failure. Requires the target mob to have an existing organic organ to "mutate".
is_barefootAre we wearing something that covers our shoes?
is_bottomlessAre we wearing something that covers our groin?
is_toplessAre we wearing something that covers our chest?
is_wearing_condomChecks if the human is wearing a condom, and also hasn't broken it.
load_nif_dataLoads the NIF data for an individual user.
load_persistent_scarsRead all the scars we have for the designated character/scar slots, verify they're good/dump them if they're old/wrong format, create them on the user, and write the scars that passed muster back to the file
load_scarTakes a single scar from the persistent scar loader and recreates it from the saved data
make_full_human_copyMakes a full copy of src and returns it. Attempts to copy as much as possible to be a close to the original. This includes job outfit (which handles skillchips), quirks, and mutations. We do not set a mind here, so this is purely the body. Args: location - The turf the human will be spawned on.
on_dwarf_traitGaining or losing [TRAIT_DWARF] updates our height
on_unknown_traitGaining or losing TRAIT_UNKNOWN updates our name and our sechud
pick_infusion_organPicks a random mutated organ from the given infuser entry which is also compatible with this human. Tries to return a typepath of a valid mutant organ if all of the following criteria are true:
psykerizeProc with no side effects that turns someone into a psyker. returns FALSE if it could not psykerize.
randomize_human_appearanceFully randomizes everything according to the given flags.
return_items_to_consoleReturns any items inside of the items_to_send list to a cryo console on station.
save_individual_persistenceSaves the persistence data for the owner.
save_nif_dataSaves the NIF data for a individual user.
save_persistent_scarsSave any scars we have to our designated slot, then write our current slot so that the next time we call /mob/living/carbon/human/proc/increment_scar_slot (the next round we join), we'll be there
sec_hud_set_IDSecurity HUDs! Basic mode shows only the job.
send_applicable_messagesAny "special" suicide messages are handled by the related item that the mob uses to kill itself. This is just messages for when it's done with the bare hands.
set_genderSets the gender of the human, respecting prefs unless it's forced. Do not force in non-admin operations.
set_mob_heightSetter for mob height
set_service_styleGives the appearance of being an agent
setup_organless_effectsThis proc is for holding effects applied when a mob is missing certain organs It is called very, very early in human init because all humans innately spawn with no organs and gain them during init Gaining said organs removes these effects
singularity_actOverrides the point value that the mob is worth
slow_psykerizeflavorful variant of psykerizing that deals damage and sends messages before calling psykerize()
smart_equip_targetedtake the most recent item out of a slot or place held item in a slot
something_horribleDNA HELPER-PROCS
toggle_externalsReturns TRUE if the tank successfully toggles open/closed. Opens the tank only if a breathing apparatus is found.
update_inv_anusUpdating anus slot
update_inv_lewdHelper proc for calling all the lewd slot update_inv_ procs.
update_inv_nipplesUpdating nipples slot
update_inv_penisUpdating penis slot
update_inv_vaginaUpdating vagina slot
washCalled when this human should be washed
wash_handsWash the hands, cleaning either the gloves if equipped and not obscured, otherwise the hands themselves if they're not obscured.

Var Details

afk_thefts

When an braindead player has their equipment fiddled with, we log that info here for when they come back so they know who took their ID while they were DC'd for 30 seconds

blood_in_hands

How many "units of blood" we have on our hands

bra

The selected bra.

bra_color

Color of the bra.

can_ride_typecache

What types of mobs are allowed to ride/buckle to this mob

coretemperature

The core temperature of the human compaired to the skin temp of the body

eye_color_heterochromatic

Var used to keep track of a human mob having a heterochromatic right eye. To ensure prefs don't overwrite shit

grad_color

Colours used for hair and facial hair gradients.

grad_style

Styles used for hair and facial hair gradients.

hair_alpha

Alpha of the hair. Takes precedent over species hair_alpha if non-null.

heat_exposure_stacks

Exposure to damaging heat levels increases stacks, stacks clean over time when temperatures are lower. Stack is consumed to add a wound.

mob_height

Height of the mob

mutant_renderkey

Render key for mutant bodyparts, utilized to reduce the amount of re-rendering

oversized_piggydam

Base damage for oversized piggyback riding.

oversized_piggyknock

Paralyze time for oversized piggyback riding in deciseconds. (10 deciseconds = 1 second)

oversized_piggywound_chance

Chance for oversized to wound someone smaller, if they try to piggyback ride them.

physique

Which body type to use

refractory_period

Used to prevent nightmare scenarios.

socks_color

Color of the socks

tgui

The Examine Panel TGUI.

try_hide_mutant_parts

A list of mutant parts the human is trying to hide, read from mutant_renderkey

undershirt_color

Color of the undershirt

underwear_visibility

Flags for showing/hiding underwear, toggleabley by a verb

Proc Details

adjust_arousal

Adjusts the parent human's arousal value based off the value assigned to arous.

adjust_coretemperature

Adjust the core temperature of a mob

vars:

apply_height_filters

Applies a filter to an appearance according to mob height

apply_height_offsets

Used in some circumstances where appearances can get cut off from the mob sprite from being too tall

upper_torso is to specify whether the appearance is locate in the upper half of the mob rather than the lower half, higher up things (hats for example) need to be offset more due to the location of the filter displacement

attack_alien

SKYRAT MODULE SKYRAT_XENO_REDO

burn_clothing

Used by fire code to damage worn items.

Arguments:

check_if_off_duty

Checks is the parent mob is currently off duty. Returns FALSE if the mob isn't clocked out.

Arguements

check_organ_damage

Returns the damage of the organ_to_check, if the organ isn't there, the proc returns 100.

check_pocket_weght

Signal proc for COMSIG_ATOM_CONTENTS_WEIGHT_CLASS_CHANGED to check if an item is suddenly too heavy for our pockets

check_reflect

Reflection checks for anything in your l_hand, r_hand, or wear_suit based on the reflection chance of the object

clean_face

Called on the COMSIG_COMPONENT_CLEAN_FACE_ACT signal

copy_clothing_prefs

copies over clothing preferences like underwear to another human

crabize

Turns the source atom into a crab crab, the peak of evolutionary design.

do_cpr

Performs CPR on the target after a delay.

electrocute_act

Calculates the siemens coeff based on clothing and species, can also restart hearts.

equip_outfit_and_loadout

Equips this mob with a given outfit and loadout items as per the passed preferences.

Loadout items override the pre-existing item in the corresponding slot of the job outfit. Some job items are preserved after being overridden - belt items, ear items, and glasses. The rest of the slots, the items are overridden completely and deleted.

Species with special outfits are snowflaked to have loadout items placed in their bags instead of overriding the outfit.

equip_species_outfit

A version of equipOutfit that overrides passed in outfits with their entry on the species' outfit override registry

fan_hud_set_fandom

FAN HUDs! For identifying other fans on-sight.

find_nifsoft

Checks to see if a human with a NIF has the nifsoft_to_find type of NIFSoft installed?

force_say

Makes the player force say what's in their current input box.

format_scars

For use formatting all of the scars this human has for saving for persistent scarring, returns a string with all current scars/missing limb amputation scars for saving or loading purposes

get_body_temp_normal

get_body_temperature Returns the body temperature with any modifications applied

This applies the result from proc/get_body_temp_normal_change() against the bodytemp_normal for the species and returns the result

arguments:

get_clothing_on_part

Get all the clothing on a specific body part

get_equipped_items

Used to return a list of equipped items on a human mob; does not by default include held items, see include_flags

Argument(s):

get_majority_bodypart_damage_desc

returns a list of "damtype" => damage description based off of which bodypart description is most common used in human examines

get_mob_height

Getter for mob height

Mainly so that dwarfism can adjust height without needing to override existing height

Returns a mob height num

get_name_part

From compose_message(). Snowflake code converted into its own signal proc

get_num_feet

Gets the number of feet the human has.

get_taur_mode

Get a human's taur mode in a standardized way.

Returns STYLE_TAUR_* or NONE.

give_emote_overlay

Creates a new emote bodypart overlay and applies it to the human. The overlay can be removed by simply deleting the returned overlay.

Returns the given overlay, which can be deleted to stop displaying it. Will return null if no bodypart matching the overlay's attached_body_zone field can be found.

handle_blood

BLOOD SYSTEM

handle_environment

Environment handlers for species

hardset_dna

Sets the DNA of the mob to the given DNA.

has_anus

Returns true if the human has an accessible anus for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_arms

Returns true if the human has a accessible feet for the parameter, returning the number of feet the human has if they do. Accepts any of the REQUIRE_GENITAL_ defines.

has_balls

Returns true if the human has a accessible balls for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_breasts

Returns true if the human has a accessible breasts for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_ears

Returns true if the human has a accessible ears for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_eyes

Returns true if the human has accessible eyes for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_feet

Returns true if the human has a accessible feet for the parameter, returning the number of feet the human has if they do. Accepts any of the REQUIRE_GENITAL_ defines.

has_penis

Returns true if the human has an accessible penis for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_tail

Returns true if the human has accessible tail for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

has_vagina

Returns true if the human has an accessible vagina for the parameter. Accepts any of the REQUIRE_GENITAL_ defines.

increment_scar_slot

When we're joining the game in /mob/dead/new_player/proc/create_character, we increment our scar slot then store the slot in our mind datum.

infuse_organ

Attempt to replace/add-to the occupant's organs with "mutated" equivalents. Returns TRUE on success, FALSE on failure. Requires the target mob to have an existing organic organ to "mutate".

is_barefoot

Are we wearing something that covers our shoes?

is_bottomless

Are we wearing something that covers our groin?

is_topless

Are we wearing something that covers our chest?

is_wearing_condom

Checks if the human is wearing a condom, and also hasn't broken it.

load_nif_data

Loads the NIF data for an individual user.

load_persistent_scars

Read all the scars we have for the designated character/scar slots, verify they're good/dump them if they're old/wrong format, create them on the user, and write the scars that passed muster back to the file

load_scar

Takes a single scar from the persistent scar loader and recreates it from the saved data

make_full_human_copy

Makes a full copy of src and returns it. Attempts to copy as much as possible to be a close to the original. This includes job outfit (which handles skillchips), quirks, and mutations. We do not set a mind here, so this is purely the body. Args: location - The turf the human will be spawned on.

on_dwarf_trait

Gaining or losing [TRAIT_DWARF] updates our height

on_unknown_trait

Gaining or losing TRAIT_UNKNOWN updates our name and our sechud

pick_infusion_organ

Picks a random mutated organ from the given infuser entry which is also compatible with this human. Tries to return a typepath of a valid mutant organ if all of the following criteria are true:

  1. Target must have a pre-existing organ in the same organ slot as the new organ;
  1. Target's pre-existing organ must be organic / not robotic.
  2. Target must not have the same/identical organ.

psykerize

Proc with no side effects that turns someone into a psyker. returns FALSE if it could not psykerize.

randomize_human_appearance

Fully randomizes everything according to the given flags.

return_items_to_console

Returns any items inside of the items_to_send list to a cryo console on station.

save_individual_persistence

Saves the persistence data for the owner.

save_nif_data

Saves the NIF data for a individual user.

save_persistent_scars

Save any scars we have to our designated slot, then write our current slot so that the next time we call /mob/living/carbon/human/proc/increment_scar_slot (the next round we join), we'll be there

sec_hud_set_ID

Security HUDs! Basic mode shows only the job.

send_applicable_messages

Any "special" suicide messages are handled by the related item that the mob uses to kill itself. This is just messages for when it's done with the bare hands.

set_gender

Sets the gender of the human, respecting prefs unless it's forced. Do not force in non-admin operations.

set_mob_height

Setter for mob height

Exists so that the update is done immediately

Returns TRUE if changed, FALSE otherwise

set_service_style

Gives the appearance of being an agent

setup_organless_effects

This proc is for holding effects applied when a mob is missing certain organs It is called very, very early in human init because all humans innately spawn with no organs and gain them during init Gaining said organs removes these effects

singularity_act

Overrides the point value that the mob is worth

slow_psykerize

flavorful variant of psykerizing that deals damage and sends messages before calling psykerize()

smart_equip_targeted

take the most recent item out of a slot or place held item in a slot

something_horrible

DNA HELPER-PROCS

toggle_externals

Returns TRUE if the tank successfully toggles open/closed. Opens the tank only if a breathing apparatus is found.

update_inv_anus

Updating anus slot

update_inv_lewd

Helper proc for calling all the lewd slot update_inv_ procs.

update_inv_nipples

Updating nipples slot

update_inv_penis

Updating penis slot

update_inv_vagina

Updating vagina slot

wash

Called when this human should be washed

wash_hands

Wash the hands, cleaning either the gloves if equipped and not obscured, otherwise the hands themselves if they're not obscured.

Returns false if we couldn't wash our hands due to them being obscured, otherwise true