living
Vars | |
admin_prev_sleeping | Used for keeping track of previous sleeping value with admin freeze. |
---|---|
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 |
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 |
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. |
AdjustSleeping | used for admin freezing. |
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 |
apply_status_effect | Applies a given status effect to this mob, returning the effect if it was successful or null otherwise |
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. |
get_strip_slot_name_override | Returns the name override, if any, for the slot somebody is trying to strip |
grant_guardian_actions | Grants all existing /datum/action/guardian type actions to the src mob. |
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. |
register_init_signals | Called on /mob/living/Initialize(mapload), 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 |
Var Details
admin_prev_sleeping
Used for keeping track of previous sleeping value with admin freeze.
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
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
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 infinity.
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 infinity.
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 infinity.
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 infinity.
AdjustSleeping
used for admin freezing.
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
apply_status_effect
Applies a given status effect to this mob, returning the effect if it was successful or null otherwise
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.
get_strip_slot_name_override
Returns the name override, if any, for the slot somebody is trying to strip
grant_guardian_actions
Grants all existing /datum/action/guardian
type actions to the src mob.
Called whenever the host gains their gauardian.
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.
register_init_signals
Called on /mob/living/Initialize(mapload), 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