byond - Modules - TypesVar Details - Proc Details

living

Vars

afk_statusIf this mob is afk
afk_timer_idId of the timer to set the afk status to MOB_DISCONNECTED
blood_volumeHow much blood the mob has. !!! Use the adjust_blood_volume() and set_blood_volume() to set this variable instead of directly modifying it!!!
brainlossBrain damage caused by someone hitting you in the head with a bible or being infected with brainrot.
brutelossBrutal damage caused by brute force (punching, being clubbed by a toolbox ect... this also accounts for pressure damage)
clonelossDamage caused by being cloned or ejected from the cloner early
drowsynessDrowsyness amount. Reduces movespeed and if inhaling smoke with a sleep trait [/mob/living/carbon/inhale_smoke] will cause them to fall asleep.
emitted_aurasList of strings for auras this mob is currently emitting via ssAura
fire_stacksTracks how many stacks of fire we have on, max is
firelossBurn damage caused by being way too hot, too cold or burnt.
fov_traitsLazy list of FOV traits that will apply a FOV view when handled.
fov_viewFOV view that is applied from either nativeness or traits
friendly_fireHow much friendly fire damage has this mob done in the last 30 seconds.
grab_resist_levelEvery time we try to resist a grab, we increment this by 1 until it exceeds the grab level, thereby breaking the grab.
hallucinationDirectly affects how long a mob will hallucinate for
hard_armorFlat-damage-reduction-based armor.
healthMob's current health
health_threshold_critHealth at which a mob goes into crit
health_threshold_deadHealth at which a mob dies
heart_multiMultiplier.
is_ventcrawlingTODO MAKE ME A TRAIT
last_restedThe world.time of when this mob was last lying down
last_stamina_exhaustionThis is the cooldown on suffering additional effects for when we exhaust all stamina
last_unconsciousThe world.time of when this mob became unconscious
looking_holderlooking holder we use for look_up and look_down. we use this over resetting to the turf because we want to glide
looking_verticallyDirection that this mob is looking at, used for the look_up and look_down procs
maxHealthMaximum health that should be possible.
max_staminaMaximum amount of stamina a mob can have. Different from the stamina buffer because stamina has a positive and negative part
max_stamina_bufferHow much stamina can you regen
metabolism_efficiencymore or less efficiency to metabolize helpful/harmful reagents and (TODO) regulate body temperature..
on_fireThe "Are we on fire?" var
oxylossOxygen depravation damage (no air in lungs)
pull_speedHow much slower or faster this mob drags as a base
ranged_accuracy_modmodifier to gun accuracy
ranged_scatter_modmodifier to gun scatter
reagent_pain_modifiersame as above, except can potentially mask damage
reagent_shock_modifiernegative values reduce shock/pain
received_aurasAssoc list mapping aura types to strength, based on what we've received since the last life tick. Handled in handle_status_effects()
registered_zThe z level this mob is currently registered in
resizeBadminnery resize
see_override0 for no override, sets see_invisible = see_override in silicon & carbon life process via update_sight()
slowdownTemporary penalty on movement. Regenerates each tick.
smoke_delaysLazy assoc list of smoke type mapped to the next world time that smoke can affect this mob
smokecloakedFor the new Smoke Grenade
soft_armor%-reduction-based armor.
stamina_regen_modifiersMaps modifiers by name to a value, applied additively to stamina_regen_multiplier
stamina_regen_multiplierHow fast does a mob regen its stamina. Shouldn't go below 0.
staminalossStamina damage caused by running to much, or specific toxins
status_effectsa list of all status effects the mob has
stun_absorptionlazy list
time_entered_cryoThe world.time of when this mob entered a cryo tube
time_entered_stasisThe world.time of when this mob entered a stasis bag
toxlossToxic damage caused by being poisoned or radiation

Procs

AdjustConfusedApplies confused or adds to existing duration
AdjustImmobilizedApplies immobilized or adds to existing duration
AdjustKnockdownApplies knockdown or adds to existing duration
AdjustMuteAdds to remaining mute duration
AdjustParalyzedApplies paralyzed or adds to existing duration
AdjustSleepingApplies sleeping or adds to existing duration
AdjustStunApplies stun or adds to existing duration
AdjustUnconsciousApplies unconscious or adds to existing duration
AmountConfusedReturns remaining confused duration
AmountImmobilizedReturns remaining immobilize duration
AmountKnockdownReturns remaining knockdown duration
AmountMuteChecks the duration left on our mute status effect
AmountParalyzedReturns remaining paralyzed duration
AmountSleepingReturns remaining sleeping duration
AmountStaggeredReturns remaining stagger duration
AmountStunReturns remaining stun duration
AmountUnconsciousReturns remaining unconscious duration
ConfusedApplies confused from current world time unless existing duration is higher
ExtinguishMobPuts out any fire on the mob
ImmobilizeApplies immobilize from current world time unless existing duration is higher
ImmobilizeNoChainApplies immobilize only if not currently applied
IsAdminSleepingADMIN SLEEP
IsConfused///////////////CONFUSED Returns if confused
IsImmobilized////////////////////////////// IMMOBILIZED ///////////////////////////////////// Returns if immobilized
IsKnockdown////////////////////////////// KNOCKDOWN ///////////////////////////////////// Returns if knockeddown
IsMute/////////////////////////// MUTE //////////////////////////////////// Checks to see if we're muted
IsParalyzed////////////////////////////// PARALYZED ////////////////////////////////// Returns if paralyzed
IsSleeping//////////////////////////////// SLEEPING //////////////////////////////////// Returns if sleeping
IsSlowed/////////////////////////// SLOW //////////////////////////////////// Returns number of slowdown stacks if any
IsStaggered/////////////////////////// STAGGER //////////////////////////////////// Returns if staggered
IsStun/////////////////////////// STUN //////////////////////////////////// Returns if stunned
IsUnconscious///////////////UNCONSCIOUS Returns if unconscious
KnockdownApplies knockdown from current world time unless existing duration is higher
KnockdownNoChainApplies knockdown only if not currently applied
MuteMutes the target for the stated duration
ParalyzeApplies paralyze from current world time unless existing duration is higher
ParalyzeNoChainApplies paralyze only if not currently applied
SetConfusedUsed to set confused to a set amount, commonly to remove it
SetImmobilizedUsed to set immobilize to a set amount, commonly to remove it
SetKnockdownUsed to set knockdown to a set amount, commonly to remove it
SetParalyzedUsed to set paralyzed to a set amount, commonly to remove it
SetSleepingUsed to set sleeping to a set amount, commonly to remove it
SetStunUsed to set stun to a set amount, commonly to remove it
SetUnconsciousUsed to set unconscious to a set amount, commonly to remove it
SleepingApplies sleeping from current world time unless existing duration is higher
StaggerApplies stagger from current world time unless existing duration is higher
StunApplies stun from current world time unless existing duration is higher
UnconsciousApplies unconscious from current world time unless existing duration is higher
ZImpactDamageCalled when this mob is receiving damage from falling
activate_handSwap to the hand clicked on the hud
add_emitted_aurasAdd a list of auras to our current emitted, update self as needed
add_fov_traitAdds a trait which limits a user's FOV
add_splatter_flooradd_splatter_floor
add_stamina_regen_modifierAdds an entry to our stamina_regen_modifiers and updates stamina_regen_multiplier
add_stun_absorptionSTUN ABSORPTION
add_ventcrawlTODO istype(src) stupidity
adjust_blood_volumeAdjusts the blood volume, with respect to the minimum and maximum values
adjust_drugginessModify mob's drugginess in either direction, minimum zero. Adds or removes druggy overlay as appropriate.
adjust_fire_stacksAdjusting the amount of fire_stacks we have on person
adjust_mob_accuracyModifies the mobs inherent accuracy modifier
adjust_mob_scatterModifies the mobs inherent scatter modifier
adjust_radiationModifies irradiation duration
adjust_slowdownThis is where we normalize the set_slowdown input to be at least 0
adjust_staggerApplies stagger or adds to existing duration
adjust_timed_status_effectAdjusts a timed status effect on the mob,taking into account any existing timed status effects. This can be any status effect that takes into account "duration" with their initialize arguments.
admin_give_speech_impedimentAdmin only proc for giving a certain speech impediment to this mob
amount_irradiatedHow many deciseconds remain in our irradiated status effect
apply_damagesUsed to apply multiple types of damage to a mob at the same time
apply_effectApplies the specified effect
apply_effectsApplies multiple negative effects to a mob
apply_radiationApplies radiation effects to a mob
attacked_by_alternate/mob/living attacked_by_alternate //TODO!! MAKE THIS UNIQUE FROM NORMAL ATTACKED_BY AS A FEATURE
can_jumpChecks if this mob can jump
can_look_upChecks if the user is incapacitated or on cooldown.
can_receive_auraCan we receive this aura? returns bool
create_thinking_indicatorOverrides for overlay creation
despawnDespawn the mob, remove its job and store its item
do_projectile_hitIs the shooter a living mob. Defined before the check as used later as well accumulated movement related evasion bonus
enable_throw_parrySends a signal to enable throw parrying for the handed duration, provided the throw_parry component is attached. Otherwise, has no real effect. For more information on parries, see throw_parry.dm
finish_aura_cycleAdjusts our stats based on the auras we've received and care about, then cleans out the list for next tick.
fly_atThrow the mob while giving HOVERING to flag_pass and setting layer to FLY_LAYER
get_equipped_itemsUsed to return a list of equipped items on a mob; does not include held items (use get_all_gear)
get_ghostProc to check for a mob's ghost.
get_hard_acid_protectionReturns the overall HARD acid protection of a mob.
get_living_limb_descriptive_nameGives us a more natural sounding limb name for descriptions and such
get_soft_acid_protectionReturns the overall SOFT acid protection of a mob.
get_upHandles getting up, doing a basic check before relaying it to the actual proc that does it
handle_bloodBLOOD SYSTEM
handle_fireUpdate fire stacks on life tick
handle_slowdownStandard slowdown regen called by life.dm
hud_set_firestacksSet fire stacks on the hud
in_fovIs observed_atom in a mob's field of view? This takes blindness, nearsightness and FOV into consideration
irradiateApplies irradiation from a source
is_irradiated////////////////////////////// Irradiated ////////////////////////////////// Returns whether the mob is irradiated or not
is_recently_snipedReturns whether the mob has been recently hit by a sniper round
look_downlook_down Changes the perspective of the mob to any openspace turf below the mob
look_uplook_up Changes the perspective of the mob to any openspace turf above the mob
on_closet_dumpAction delay when going out of a closet
on_fakedeath_trait_gainCalled when TRAIT_FAKEDEATH is added to the mob.
on_fakedeath_trait_lossCalled when TRAIT_FAKEDEATH is removed from the mob.
on_floored_trait_gainCalled when TRAIT_FLOORED is added to the mob.
on_floored_trait_lossCalled when TRAIT_FLOORED is removed from the mob.
on_immobile_trait_gainCalled when TRAIT_LEGLESS is added to the mob.
on_immobile_trait_lossCalled when TRAIT_LEGLESS is removed from the mob.
on_knockedout_trait_gainCalled when TRAIT_KNOCKEDOUT is added to the mob.
on_knockedout_trait_lossCalled when TRAIT_KNOCKEDOUT is removed from the mob.
on_legless_trait_gainCalled when TRAIT_LEGLESS is added to the mob.
on_legless_trait_lossCalled when TRAIT_LEGLESS is removed from the mob.
on_sdd_grace_period_endSet the mob as afk after AFK_TIMER
radiocaps the length of individual letters to 3: ex: heeeeeeyy -> heeeyy prevents TTS from choking on unrealistic text while keeping emphasis
recalc_stamina_regen_multiplierRegenerates stamina_regen_multiplier from initial based on the current modifier list, minimum 0.
receive_auraUpdate what auras we'll receive this life tick if it's either new or stronger than current. aura_type as AURA_ define, strength as number.
record_melee_damageTally to personal_statistics that a melee attack took place, and record the damage dealt
record_projectile_damageTally to personal_statistics that a successful shot was made and record the damage dealt
record_time_in_cryoRecord how long a mob was in a cryo tube
record_time_in_stasisRecord how long a mob was in a stasis bag
record_time_lying_downRecord how much time a mob was lying down for
record_time_unconsciousRecord how long a mob was knocked out or sleeping
remove_emitted_aurasRemove a list of auras from our current emitted, update self as needed
remove_fov_traitRemoves a trait which limits a user's FOV
remove_stamina_regen_modifierRemoves an entry from our stamina_regen_modifiers and updates stamina_regen_multiplier. Returns TRUE if an entry was removed
resist_fireTry and remove fire from ourselves
setBruteLossWe straight up set bruteloss/brute damage to a desired amount unless godmode is enabled
setFireLossWe straight up set fireloss/burn damage to a desired amount unless godmode is enabled
set_afk_statusSet the afk status of the mob
set_blood_volumeSets the blood volume, with respect to the minimum and maximum values
set_drugginessSets mob's drugginess to provided amount, minimum 0. Adds or removes druggy overlay as appropriate.
set_jump_componentSets up the jump component for the mob. Proc args can be altered so different mobs have different 'default' jump settings
set_lying_angleChanges the inclination angle of a mob, used by humans and others to differentiate between standing up and prone positions.
set_radiationSets irradiation duration
set_remote_controlSet the remote_control and reset the perspective
set_restingActually handles toggling the resting state
set_slowdownWhere the magic happens. Actually applies slow stacks.
set_staggerUsed to set stagger to a set amount, commonly to remove it
set_timed_status_effectSets a timed status effect of some kind on a mob to a specific value. If only_if_higher is TRUE, it will only set the value up to the passed duration, so any pre-existing status effects of the same type won't be reduced down
shared_living_ui_distancepublic
swap_handSwap the active hand
take_overall_damageDamages all limbs equally. Overridden by human, otherwise just does apply_damage
toggle_restingHandles trying to toggle resting state
tram_slam_landA proc triggered by callback when someone gets slammed by the tram and lands somewhere.
transfer_mobTransfer the candidate mind into src
update_aura_overlayBring however we represent emitted auras up to date. Implemented for human and xenomorph.
update_fireUpdates fire visuals
update_fovGetting a direction vector Calculate angle Calculate vision angle and compare Updates the applied FOV value and applies the handler to client if able
update_fov_clientUpdates the FOV for the client.
update_stam_skill_modUpdates the mob's stamina modifiers if their stam skill changes
update_zUpdates the mob's registered_z
user_can_buckleReturns TRUE or FALSE depending on whether src can buckle buckling_mob into something
zMoveWe want to relay the zmovement to the buckled atom when possible and only run what we can't have on buckled.zMove() or buckled.can_z_move() here. This way we can avoid esoteric bugs, copypasta and inconsistencies.

Var Details

afk_status

If this mob is afk

afk_timer_id

Id of the timer to set the afk status to MOB_DISCONNECTED

blood_volume

How much blood the mob has. !!! Use the adjust_blood_volume() and set_blood_volume() to set this variable instead of directly modifying it!!!

brainloss

Brain damage caused by someone hitting you in the head with a bible or being infected with brainrot.

bruteloss

Brutal damage caused by brute force (punching, being clubbed by a toolbox ect... this also accounts for pressure damage)

cloneloss

Damage caused by being cloned or ejected from the cloner early

drowsyness

Drowsyness amount. Reduces movespeed and if inhaling smoke with a sleep trait [/mob/living/carbon/inhale_smoke] will cause them to fall asleep.

emitted_auras

List of strings for auras this mob is currently emitting via ssAura

fire_stacks

Tracks how many stacks of fire we have on, max is

fireloss

Burn damage caused by being way too hot, too cold or burnt.

fov_traits

Lazy list of FOV traits that will apply a FOV view when handled.

fov_view

FOV view that is applied from either nativeness or traits

friendly_fire

How much friendly fire damage has this mob done in the last 30 seconds.

grab_resist_level

Every time we try to resist a grab, we increment this by 1 until it exceeds the grab level, thereby breaking the grab.

hallucination

Directly affects how long a mob will hallucinate for

hard_armor

Flat-damage-reduction-based armor.

health

Mob's current health

health_threshold_crit

Health at which a mob goes into crit

health_threshold_dead

Health at which a mob dies

heart_multi

Multiplier.

is_ventcrawling

TODO MAKE ME A TRAIT

last_rested

The world.time of when this mob was last lying down

last_stamina_exhaustion

This is the cooldown on suffering additional effects for when we exhaust all stamina

last_unconscious

The world.time of when this mob became unconscious

looking_holder

looking holder we use for look_up and look_down. we use this over resetting to the turf because we want to glide

looking_vertically

Direction that this mob is looking at, used for the look_up and look_down procs

maxHealth

Maximum health that should be possible.

max_stamina

Maximum amount of stamina a mob can have. Different from the stamina buffer because stamina has a positive and negative part

max_stamina_buffer

How much stamina can you regen

metabolism_efficiency

more or less efficiency to metabolize helpful/harmful reagents and (TODO) regulate body temperature..

on_fire

The "Are we on fire?" var

oxyloss

Oxygen depravation damage (no air in lungs)

pull_speed

How much slower or faster this mob drags as a base

ranged_accuracy_mod

modifier to gun accuracy

ranged_scatter_mod

modifier to gun scatter

reagent_pain_modifier

same as above, except can potentially mask damage

reagent_shock_modifier

negative values reduce shock/pain

received_auras

Assoc list mapping aura types to strength, based on what we've received since the last life tick. Handled in handle_status_effects()

registered_z

The z level this mob is currently registered in

resize

Badminnery resize

see_override

0 for no override, sets see_invisible = see_override in silicon & carbon life process via update_sight()

slowdown

Temporary penalty on movement. Regenerates each tick.

smoke_delays

Lazy assoc list of smoke type mapped to the next world time that smoke can affect this mob

smokecloaked

For the new Smoke Grenade

soft_armor

%-reduction-based armor.

stamina_regen_modifiers

Maps modifiers by name to a value, applied additively to stamina_regen_multiplier

stamina_regen_multiplier

How fast does a mob regen its stamina. Shouldn't go below 0.

staminaloss

Stamina damage caused by running to much, or specific toxins

status_effects

a list of all status effects the mob has

stun_absorption

lazy list

time_entered_cryo

The world.time of when this mob entered a cryo tube

time_entered_stasis

The world.time of when this mob entered a stasis bag

toxloss

Toxic damage caused by being poisoned or radiation

Proc Details

AdjustConfused

Applies confused or adds to existing duration

AdjustImmobilized

Applies immobilized or adds to existing duration

AdjustKnockdown

Applies knockdown or adds to existing duration

AdjustMute

Adds to remaining mute duration

AdjustParalyzed

Applies paralyzed or adds to existing duration

AdjustSleeping

Applies sleeping or adds to existing duration

AdjustStun

Applies stun or adds to existing duration

AdjustUnconscious

Applies unconscious or adds to existing duration

AmountConfused

Returns remaining confused duration

AmountImmobilized

Returns remaining immobilize duration

AmountKnockdown

Returns remaining knockdown duration

AmountMute

Checks the duration left on our mute status effect

AmountParalyzed

Returns remaining paralyzed duration

AmountSleeping

Returns remaining sleeping duration

AmountStaggered

Returns remaining stagger duration

AmountStun

Returns remaining stun duration

AmountUnconscious

Returns remaining unconscious duration

Confused

Applies confused from current world time unless existing duration is higher

ExtinguishMob

Puts out any fire on the mob

Immobilize

Applies immobilize from current world time unless existing duration is higher

ImmobilizeNoChain

Applies immobilize only if not currently applied

IsAdminSleeping

ADMIN SLEEP

IsConfused

///////////////CONFUSED Returns if confused

IsImmobilized

////////////////////////////// IMMOBILIZED ///////////////////////////////////// Returns if immobilized

IsKnockdown

////////////////////////////// KNOCKDOWN ///////////////////////////////////// Returns if knockeddown

IsMute

/////////////////////////// MUTE //////////////////////////////////// Checks to see if we're muted

IsParalyzed

////////////////////////////// PARALYZED ////////////////////////////////// Returns if paralyzed

IsSleeping

//////////////////////////////// SLEEPING //////////////////////////////////// Returns if sleeping

IsSlowed

/////////////////////////// SLOW //////////////////////////////////// Returns number of slowdown stacks if any

IsStaggered

/////////////////////////// STAGGER //////////////////////////////////// Returns if staggered

IsStun

/////////////////////////// STUN //////////////////////////////////// Returns if stunned

IsUnconscious

///////////////UNCONSCIOUS Returns if unconscious

Knockdown

Applies knockdown from current world time unless existing duration is higher

KnockdownNoChain

Applies knockdown only if not currently applied

Mute

Mutes the target for the stated duration

Paralyze

Applies paralyze from current world time unless existing duration is higher

ParalyzeNoChain

Applies paralyze only if not currently applied

SetConfused

Used to set confused to a set amount, commonly to remove it

SetImmobilized

Used to set immobilize to a set amount, commonly to remove it

SetKnockdown

Used to set knockdown to a set amount, commonly to remove it

SetParalyzed

Used to set paralyzed to a set amount, commonly to remove it

SetSleeping

Used to set sleeping to a set amount, commonly to remove it

SetStun

Used to set stun to a set amount, commonly to remove it

SetUnconscious

Used to set unconscious to a set amount, commonly to remove it

Sleeping

Applies sleeping from current world time unless existing duration is higher

Stagger

Applies stagger from current world time unless existing duration is higher

Stun

Applies stun from current world time unless existing duration is higher

Unconscious

Applies unconscious from current world time unless existing duration is higher

ZImpactDamage

Called when this mob is receiving damage from falling

activate_hand

Swap to the hand clicked on the hud

add_emitted_auras

Add a list of auras to our current emitted, update self as needed

add_fov_trait

Adds a trait which limits a user's FOV

add_splatter_floor

add_splatter_floor

add_stamina_regen_modifier

Adds an entry to our stamina_regen_modifiers and updates stamina_regen_multiplier

add_stun_absorption

STUN ABSORPTION

add_ventcrawl

TODO istype(src) stupidity

adjust_blood_volume

Adjusts the blood volume, with respect to the minimum and maximum values

adjust_drugginess

Modify mob's drugginess in either direction, minimum zero. Adds or removes druggy overlay as appropriate.

adjust_fire_stacks

Adjusting the amount of fire_stacks we have on person

adjust_mob_accuracy

Modifies the mobs inherent accuracy modifier

adjust_mob_scatter

Modifies the mobs inherent scatter modifier

adjust_radiation

Modifies irradiation duration

adjust_slowdown

This is where we normalize the set_slowdown input to be at least 0

adjust_stagger

Applies stagger or adds to existing duration

adjust_timed_status_effect

Adjusts a timed status effect on the mob,taking into account any existing timed status effects. This can be any status effect that takes into account "duration" with their initialize arguments.

Positive durations will add deciseconds to the duration of existing status effects or apply a new status effect of that duration to the mob.

Negative durations will remove deciseconds from the duration of an existing version of the status effect, removing the status effect entirely if the duration becomes less than zero (less than the current world time).

duration - the duration, in deciseconds, to add or remove from the effect effect - the type of status effect being adjusted on the mob max_duration - optional - if set, positive durations will only be added UP TO the passed max duration

admin_give_speech_impediment

Admin only proc for giving a certain speech impediment to this mob

amount_irradiated

How many deciseconds remain in our irradiated status effect

apply_damages

Used to apply multiple types of damage to a mob at the same time

apply_effect

Applies the specified effect

Arguments:

apply_effects

Applies multiple negative effects to a mob

apply_radiation

Applies radiation effects to a mob

attacked_by_alternate

/mob/living attacked_by_alternate //TODO!! MAKE THIS UNIQUE FROM NORMAL ATTACKED_BY AS A FEATURE

Called when a mob is attacked by an item while the user clicked on them with left click Arguments: I: item this mob is being attacked by user: the attacker def_zone: targetted area that will be attacked

can_jump

Checks if this mob can jump

can_look_up

Checks if the user is incapacitated or on cooldown.

can_receive_aura

Can we receive this aura? returns bool

create_thinking_indicator

Overrides for overlay creation

despawn

Despawn the mob, remove its job and store its item

do_projectile_hit

Is the shooter a living mob. Defined before the check as used later as well accumulated movement related evasion bonus

enable_throw_parry

Sends a signal to enable throw parrying for the handed duration, provided the throw_parry component is attached. Otherwise, has no real effect. For more information on parries, see throw_parry.dm

finish_aura_cycle

Adjusts our stats based on the auras we've received and care about, then cleans out the list for next tick.

fly_at

Throw the mob while giving HOVERING to flag_pass and setting layer to FLY_LAYER

target : where will the mob be thrown at range : how far the mob will be thrown, in tile speed : how fast will it fly

get_equipped_items

Used to return a list of equipped items on a mob; does not include held items (use get_all_gear)

Argument(s):

get_ghost

Proc to check for a mob's ghost.

get_hard_acid_protection

Returns the overall HARD acid protection of a mob.

get_living_limb_descriptive_name

Gives us a more natural sounding limb name for descriptions and such

get_soft_acid_protection

Returns the overall SOFT acid protection of a mob.

get_up

Handles getting up, doing a basic check before relaying it to the actual proc that does it

handle_blood

BLOOD SYSTEM

handle_fire

Update fire stacks on life tick

handle_slowdown

Standard slowdown regen called by life.dm

hud_set_firestacks

Set fire stacks on the hud

in_fov

Is observed_atom in a mob's field of view? This takes blindness, nearsightness and FOV into consideration

irradiate

Applies irradiation from a source

is_irradiated

////////////////////////////// Irradiated ////////////////////////////////// Returns whether the mob is irradiated or not

is_recently_sniped

Returns whether the mob has been recently hit by a sniper round

look_down

look_down Changes the perspective of the mob to any openspace turf below the mob

This also checks if an openspace turf is below the mob before looking down or resets the perspective if already looking up

look_up

look_up Changes the perspective of the mob to any openspace turf above the mob

This also checks if an openspace turf is above the mob before looking up or resets the perspective if already looking up

on_closet_dump

Action delay when going out of a closet

on_fakedeath_trait_gain

Called when TRAIT_FAKEDEATH is added to the mob.

on_fakedeath_trait_loss

Called when TRAIT_FAKEDEATH is removed from the mob.

on_floored_trait_gain

Called when TRAIT_FLOORED is added to the mob.

on_floored_trait_loss

Called when TRAIT_FLOORED is removed from the mob.

on_immobile_trait_gain

Called when TRAIT_LEGLESS is added to the mob.

on_immobile_trait_loss

Called when TRAIT_LEGLESS is removed from the mob.

on_knockedout_trait_gain

Called when TRAIT_KNOCKEDOUT is added to the mob.

on_knockedout_trait_loss

Called when TRAIT_KNOCKEDOUT is removed from the mob.

on_legless_trait_gain

Called when TRAIT_LEGLESS is added to the mob.

on_legless_trait_loss

Called when TRAIT_LEGLESS is removed from the mob.

on_sdd_grace_period_end

Set the mob as afk after AFK_TIMER

radio

caps the length of individual letters to 3: ex: heeeeeeyy -> heeeyy prevents TTS from choking on unrealistic text while keeping emphasis

recalc_stamina_regen_multiplier

Regenerates stamina_regen_multiplier from initial based on the current modifier list, minimum 0.

receive_aura

Update what auras we'll receive this life tick if it's either new or stronger than current. aura_type as AURA_ define, strength as number.

record_melee_damage

Tally to personal_statistics that a melee attack took place, and record the damage dealt

record_projectile_damage

Tally to personal_statistics that a successful shot was made and record the damage dealt

record_time_in_cryo

Record how long a mob was in a cryo tube

record_time_in_stasis

Record how long a mob was in a stasis bag

record_time_lying_down

Record how much time a mob was lying down for

record_time_unconscious

Record how long a mob was knocked out or sleeping

remove_emitted_auras

Remove a list of auras from our current emitted, update self as needed

remove_fov_trait

Removes a trait which limits a user's FOV

remove_stamina_regen_modifier

Removes an entry from our stamina_regen_modifiers and updates stamina_regen_multiplier. Returns TRUE if an entry was removed

resist_fire

Try and remove fire from ourselves

setBruteLoss

We straight up set bruteloss/brute damage to a desired amount unless godmode is enabled

setFireLoss

We straight up set fireloss/burn damage to a desired amount unless godmode is enabled

set_afk_status

Set the afk status of the mob

set_blood_volume

Sets the blood volume, with respect to the minimum and maximum values

set_drugginess

Sets mob's drugginess to provided amount, minimum 0. Adds or removes druggy overlay as appropriate.

set_jump_component

Sets up the jump component for the mob. Proc args can be altered so different mobs have different 'default' jump settings

set_lying_angle

Changes the inclination angle of a mob, used by humans and others to differentiate between standing up and prone positions.

In BYOND-angles 0 is NORTH, 90 is EAST, 180 is SOUTH and 270 is WEST. This usually means that 0 is standing up, 90 and 270 are horizontal positions to right and left respectively, and 180 is upside-down. Mobs that do now follow these conventions due to unusual sprites should require a special handling or redefinition of this proc, due to the density and layer changes. The return of this proc is the previous value of the modified lying_angle if a change was successful (might include zero), or null if no change was made.

set_radiation

Sets irradiation duration

set_remote_control

Set the remote_control and reset the perspective

set_resting

Actually handles toggling the resting state

set_slowdown

Where the magic happens. Actually applies slow stacks.

set_stagger

Used to set stagger to a set amount, commonly to remove it

set_timed_status_effect

Sets a timed status effect of some kind on a mob to a specific value. If only_if_higher is TRUE, it will only set the value up to the passed duration, so any pre-existing status effects of the same type won't be reduced down

duration - the duration, in deciseconds, of the effect. 0 or lower will either remove the current effect or do nothing if none are present effect - the type of status effect given to the mob only_if_higher - if TRUE, we will only set the effect to the new duration if the new duration is longer than any existing duration

shared_living_ui_distance

public

Distance versus interaction check.

required src_object atom/movable The object which owns the UI.

return UI_state The state of the UI.

swap_hand

Swap the active hand

take_overall_damage

Damages all limbs equally. Overridden by human, otherwise just does apply_damage

toggle_resting

Handles trying to toggle resting state

tram_slam_land

A proc triggered by callback when someone gets slammed by the tram and lands somewhere.

This proc is used to force people to fall through things like lattice and unplated flooring at the expense of some extra damage, so jokers can't use half a stack of iron rods to make getting hit by the tram immediately lethal.

transfer_mob

Transfer the candidate mind into src

update_aura_overlay

Bring however we represent emitted auras up to date. Implemented for human and xenomorph.

update_fire

Updates fire visuals

update_fov

Getting a direction vector Calculate angle Calculate vision angle and compare Updates the applied FOV value and applies the handler to client if able

update_fov_client

Updates the FOV for the client.

update_stam_skill_mod

Updates the mob's stamina modifiers if their stam skill changes

update_z

Updates the mob's registered_z

user_can_buckle

Returns TRUE or FALSE depending on whether src can buckle buckling_mob into something

zMove

We want to relay the zmovement to the buckled atom when possible and only run what we can't have on buckled.zMove() or buckled.can_z_move() here. This way we can avoid esoteric bugs, copypasta and inconsistencies.