living
Vars | |
admin_prev_sleeping | Used for keeping track of previous sleeping value with admin freeze. |
---|---|
advanced_bullet_dodge_chance | This variable is the chance for a mob to automatically dodge a bullet. Useful for admins, and applied to some mobs by default, such as the malfunctioning drone mobs. |
buckling | movable atom we are buckled to |
extra_message_range | If a creature gets to be super special and have extra range on their chat messages |
flags_2 | Flag to enable these making trees semi-transparent if behind them |
forced_look | This can either be a numerical direction or a soft object reference (UID). It makes the mob always face towards the selected thing. |
frozen | Used for preventing attacks on admin-frozen mobs. |
holder_type | the type of holder that will be created when a mob gets scooped up |
incorporeal_move | Allows mobs to move through dense areas without restriction. For instance, in space or out of holder objects. |
initial_traits | List of traits that should be applied on Initialize |
last_taste_text | Stores a var of the last tast message we got. used so we don't spam people messages while they eat |
last_taste_time | Stores a var of the last world time we tasted something. used so we don't spam people messages while they eat |
last_words | Famous last words -- if succumbing, what the user's last words were |
lying_angle | Number of degrees of rotation of a mob. 0 means no rotation, up-side facing NORTH. 90 means up-side rotated to face EAST, and so on. |
resting | if a mob is choosing to lay down |
stamina_regen_block_modifier | A multiplier for the ammount of time it takes for someone to regenerate stamina damage. |
Procs | |
AdjustConfused | Sets confusion to current amount + given, clamped between lower and higher bounds. |
AdjustDizzy | Sets dizziness to current amount + given, clamped between lower and higher bounds. |
AdjustDrowsy | Sets drowsiness to current amount + given, clamped between lower and higher bounds. |
AdjustDrunk | Sets drunkenness to current amount + given, clamped between lower and higher bounds. |
Confused | Sets confusion if it's higher than current. |
Dizzy | Sets dizziness if it's higher than current. |
Drowsy | Sets drowsiness if it's higher than current. |
Drunk | Sets drunkenness if it's higher than current. |
IsFrozen | FROZEN |
SetConfused | Sets confusion if it's higher than zero. |
SetDizzy | Sets dizziness if it's higher than zero. |
SetDrowsy | Sets drowsiness if it's higher than zero. |
SetDrunk | Sets drunkenness if it's higher than zero. |
add_stun_absorption | STUN ABSORPTION |
admin_Freeze | mob freeze procs |
advanced_bullet_dodge | Tries to dodge incoming bullets if we aren't disabled for any reasons. Advised to overide with advanced effects, this is as basic example admins can apply. |
apply_status_effect | Applies a given status effect to this mob, returning the effect if it was successful or null otherwise |
can_remote_apc_interface | Can a mob interact with the apc remotely like a pulse demon, cyborg, or AI? |
can_run_surgery | Check to see if a surgical operation proposed on ourselves is valid or not. We are the target of the surgery |
clear_forced_look | Clears the mob's direction lock if enabled. |
electrocute_act | As the name suggests, this should be called to apply electric shocks. |
get_confusion | Returns current amount of confusion, 0 if none. |
get_dizziness | Returns current amount of dizziness, 0 if none. |
get_drowsiness | Returns current amount of drowsiness, 0 if none. |
get_drunkenness | Returns current amount of drunkenness, 0 if none. |
grant_guardian_actions | Grants all existing /datum/action/guardian type actions to the src mob. |
handle_environment | Handle temperature/pressure differences between body and environment |
handle_fire | Burns a mob and slowly puts the fires out. Returns TRUE if the mob is on fire |
has_status_effect | Returns the effect if the mob calling the proc owns the given status effect, or null otherwise |
has_status_effect_list | Returns a list of effects with matching IDs that the mod owns; use for effects there can be multiple of |
has_status_effect_type | Returns the effect if the mob calling the proc owns the given status effect, but checks by type. |
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_forced_standing_trait_gain | Called when [TRAIT_FORCED_STANDING] is added to the mob. |
on_forced_standing_trait_loss | Called when [TRAIT_FORCED_STANDING] is removed from the mob. |
on_handsblocked_trait_gain | Called when TRAIT_HANDS_BLOCKED is added to the mob. |
on_handsblocked_trait_loss | Called when TRAIT_HANDS_BLOCKED is removed from the mob. |
on_immobilized_trait_gain | Called when TRAIT_IMMOBILIZED is added to the mob. |
on_immobilized_trait_loss | Called when TRAIT_IMMOBILIZED 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_pull_blocked_trait_gain | Called when TRAIT_CANNOT_PULL is added to the mob. |
on_pull_blocked_trait_loss | Called when TRAIT_CANNOT_PULL is removed from the mob. |
on_restrained_trait_gain | Called when TRAIT_RESTRAINED is added to the mob. |
on_restrained_trait_loss | Called when TRAIT_RESTRAINED is removed from the mob. |
on_ui_blocked_trait_gain | Called when TRAIT_UI_BLOCKED is added to the mob. |
on_ui_blocked_trait_loss | Called when TRAIT_UI_BLOCKED is removed from the mob. |
on_unknown_trait | Gaining or losing [TRAIT_UNKNOWN] updates our name and our sechud |
register_init_signals | Called on [/mob/living/proc/Initialize], for the mob to register to relevant signals. |
remove_guardian_actions | Removes all /datum/action/guardian type actions from the src mob. |
remove_status_effect | Removes all of a given status effect from this mob, returning TRUE if at least one was removed |
run_resist | proc extender of [/mob/living/verb/resist] meant to make the process queable if the server is overloaded when the verb is called |
set_forced_look | Sets the mob's direction lock towards a given atom. |
set_lying_angle | Changes the inclination angle of a mob, used by humans and others to differentiate between standing up and prone positions. |
shared_living_ui_distance | public |
transfer_blood_to | BLOOD TRANSFERS |
unbuckle | Unbuckle the mob from whatever it is buckled to. |
Var Details
admin_prev_sleeping
Used for keeping track of previous sleeping value with admin freeze.
advanced_bullet_dodge_chance
This variable is the chance for a mob to automatically dodge a bullet. Useful for admins, and applied to some mobs by default, such as the malfunctioning drone mobs.
buckling
movable atom we are buckled to
extra_message_range
If a creature gets to be super special and have extra range on their chat messages
flags_2
Flag to enable these making trees semi-transparent if behind them
forced_look
This can either be a numerical direction or a soft object reference (UID). It makes the mob always face towards the selected thing.
frozen
Used for preventing attacks on admin-frozen mobs.
holder_type
the type of holder that will be created when a mob gets scooped up
incorporeal_move
Allows mobs to move through dense areas without restriction. For instance, in space or out of holder objects.
initial_traits
List of traits that should be applied on Initialize
last_taste_text
Stores a var of the last tast message we got. used so we don't spam people messages while they eat
last_taste_time
Stores a var of the last world time we tasted something. used so we don't spam people messages while they eat
last_words
Famous last words -- if succumbing, what the user's last words were
lying_angle
Number of degrees of rotation of a mob. 0 means no rotation, up-side facing NORTH. 90 means up-side rotated to face EAST, and so on.
resting
if a mob is choosing to lay down
stamina_regen_block_modifier
A multiplier for the ammount of time it takes for someone to regenerate stamina damage.
Proc Details
AdjustConfused
Sets confusion to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to 5 minutes.
AdjustDizzy
Sets dizziness to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to 5 minutes.
AdjustDrowsy
Sets drowsiness to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to 5 minutes.
AdjustDrunk
Sets drunkenness to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to 5 minutes.
Confused
Sets confusion if it's higher than current.
Dizzy
Sets dizziness if it's higher than current.
Drowsy
Sets drowsiness if it's higher than current.
Drunk
Sets drunkenness if it's higher than current.
IsFrozen
FROZEN
SetConfused
Sets confusion if it's higher than zero.
SetDizzy
Sets dizziness if it's higher than zero.
SetDrowsy
Sets drowsiness if it's higher than zero.
SetDrunk
Sets drunkenness if it's higher than zero.
add_stun_absorption
STUN ABSORPTION
admin_Freeze
mob freeze procs
advanced_bullet_dodge
Tries to dodge incoming bullets if we aren't disabled for any reasons. Advised to overide with advanced effects, this is as basic example admins can apply.
apply_status_effect
Applies a given status effect to this mob, returning the effect if it was successful or null otherwise
can_remote_apc_interface
Can a mob interact with the apc remotely like a pulse demon, cyborg, or AI?
can_run_surgery
Check to see if a surgical operation proposed on ourselves is valid or not. We are the target of the surgery
clear_forced_look
Clears the mob's direction lock if enabled.
Arguments:
- quiet - Whether to display a chat message.
electrocute_act
As the name suggests, this should be called to apply electric shocks.
get_confusion
Returns current amount of confusion, 0 if none.
get_dizziness
Returns current amount of dizziness, 0 if none.
get_drowsiness
Returns current amount of drowsiness, 0 if none.
get_drunkenness
Returns current amount of drunkenness, 0 if none.
grant_guardian_actions
Grants all existing /datum/action/guardian
type actions to the src mob.
Called whenever the host gains their gauardian.
handle_environment
Handle temperature/pressure differences between body and environment
handle_fire
Burns a mob and slowly puts the fires out. Returns TRUE if the mob is on fire
has_status_effect
Returns the effect if the mob calling the proc owns the given status effect, or null otherwise
has_status_effect_list
Returns a list of effects with matching IDs that the mod owns; use for effects there can be multiple of
has_status_effect_type
Returns the effect if the mob calling the proc owns the given status effect, but checks by type.
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_forced_standing_trait_gain
Called when [TRAIT_FORCED_STANDING] is added to the mob.
on_forced_standing_trait_loss
Called when [TRAIT_FORCED_STANDING] is removed from the mob.
on_handsblocked_trait_gain
Called when TRAIT_HANDS_BLOCKED is added to the mob.
on_handsblocked_trait_loss
Called when TRAIT_HANDS_BLOCKED is removed from the mob.
on_immobilized_trait_gain
Called when TRAIT_IMMOBILIZED is added to the mob.
on_immobilized_trait_loss
Called when TRAIT_IMMOBILIZED 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_pull_blocked_trait_gain
Called when TRAIT_CANNOT_PULL is added to the mob.
on_pull_blocked_trait_loss
Called when TRAIT_CANNOT_PULL is removed from the mob.
on_restrained_trait_gain
Called when TRAIT_RESTRAINED is added to the mob.
on_restrained_trait_loss
Called when TRAIT_RESTRAINED is removed from the mob.
on_ui_blocked_trait_gain
Called when TRAIT_UI_BLOCKED is added to the mob.
on_ui_blocked_trait_loss
Called when TRAIT_UI_BLOCKED is removed from the mob.
on_unknown_trait
Gaining or losing [TRAIT_UNKNOWN] updates our name and our sechud
register_init_signals
Called on [/mob/living/proc/Initialize], for the mob to register to relevant signals.
remove_guardian_actions
Removes all /datum/action/guardian
type actions from the src mob.
Called whenever the host loses their guardian.
remove_status_effect
Removes all of a given status effect from this mob, returning TRUE if at least one was removed
run_resist
proc extender of [/mob/living/verb/resist] meant to make the process queable if the server is overloaded when the verb is called
set_forced_look
Sets the mob's direction lock towards a given atom.
Arguments:
- a - The atom to face towards.
- track - If TRUE, updates our direction relative to the atom when moving.
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.
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.
transfer_blood_to
BLOOD TRANSFERS
unbuckle
Unbuckle the mob from whatever it is buckled to.