carbon ![code/modules/mob/living/carbon/carbon_defines.dm 1](git.png)
Vars | |
co2overloadtime | Used to track how much CO2 is in our system. Too much CO2 means you get stunned and die |
---|---|
dreaming | How many dream messages we have left to send |
handcuffed | Whether or not the mob is handcuffed, restraints/handcuffs/ required for var/cuffed_state |
head | The object stored on the head of the mob. Strangly not on the Human level |
internal_organ_datums | An associated list of strings that associate it with the organ datum, e.g. [ORGAN_DATUM_HEART] = /datum/organ/heart |
last_pain_message | Stores the last pain message we got. used to prevent chatspam from pain |
legcuffed | Same as handcuffs but for legs. Bear traps use this. |
life_tick | The amount of life ticks that have processed on this mob. |
next_pain_time | Stores the last time we sent a pain message. used to prevent chatspam from pain |
nightmare | How many nightmare messages we have left to send |
pose | Active emote/pose. Similar to flavor text |
pulse | Current pulse of this mob. Updated by handle_pulse on life |
wear_suit | The object stored on the exosuit slot of the mob. Strangly not on the Human level |
wetlevel | Tracks how wet the mob is. Only used for examining the mob |
Procs | |
can_breathe_helmet | Returns TRUE if an air tank compatible helmet is equipped. |
can_breathe_internals | Returns TRUE if an air tank compatible mask or breathing tube is equipped. |
can_breathe_mask | Returns TRUE if an air tank compatible mask is equipped. |
can_breathe_tube | Returns TRUE if a breathing tube is equipped. |
can_feel_pain | Whether or not a mob can feel pain. |
clear_handcuffs | Removes a carbon's handcuffs, dropping them to the ground. Calls update_handcuffed(). Unbuckles if handcuffs were necessary for the buckle (pipe buckling, etc.) |
clear_legcuffs | Removes a carbon's legcuffs, dropping them to the ground. Calls update_inv_legcuffed(). |
clear_restraints | Clears a carbon mob's handcuffs and legcuffs, dropping them to the ground. |
dream | DREAMS |
electrocute_act | Adds to the parent by also adding functionality to propagate shocks through pulling and doing some fluff effects. |
examine_damage_flavor | Add specific damage flavor here. |
examine_extra_damage_flavor | Add any extra info which should be within the "damage" block, the big warning span. |
examine_extra_general_flavor | Add some last information in before HUDs get put through. |
examine_handle_individual_limb | Special handlers for processing limbs go here, based on limb names in examine_visible_clothing. |
examine_start_damage_block | Add whatever you want to start the damage block with here. |
examine_visible_clothing | Get the message parts, in order, for a proper examine. Message parts should be as follows: |
examine_what_am_i | Identify what this mob in particular is. |
has_virus | Whether a virus worthy displaying on the HUD is present. |
is_in_crit | Medical HUD! Basic mode needs suit sensors on. Whether the carbon mob is currently in crit. |
pat_out | Handles patting out a fire on someone. |
secondary_shock | Called slightly after electrocute act to reduce jittering and apply a secondary knockdown. |
toggle_give | Toggles the /datum/click_intercept/give on or off for the src mob. |
update_suit_sensors | HOOKS |
Var Details
co2overloadtime ![code/modules/mob/living/carbon/carbon_defines.dm 39](git.png)
Used to track how much CO2 is in our system. Too much CO2 means you get stunned and die
dreaming ![code/modules/mob/living/carbon/carbon_defines.dm 45](git.png)
How many dream messages we have left to send
handcuffed ![code/modules/mob/living/carbon/carbon_defines.dm 20](git.png)
Whether or not the mob is handcuffed, restraints/handcuffs/ required for var/cuffed_state
head ![code/modules/mob/living/carbon/carbon_defines.dm 25](git.png)
The object stored on the head of the mob. Strangly not on the Human level
internal_organ_datums ![code/modules/mob/living/carbon/carbon_defines.dm 11](git.png)
An associated list of strings that associate it with the organ datum, e.g. [ORGAN_DATUM_HEART] = /datum/organ/heart
last_pain_message ![code/modules/mob/living/carbon/carbon_defines.dm 55](git.png)
Stores the last pain message we got. used to prevent chatspam from pain
legcuffed ![code/modules/mob/living/carbon/carbon_defines.dm 22](git.png)
Same as handcuffs but for legs. Bear traps use this.
life_tick ![code/modules/mob/living/carbon/carbon_defines.dm 14](git.png)
The amount of life ticks that have processed on this mob.
next_pain_time ![code/modules/mob/living/carbon/carbon_defines.dm 57](git.png)
Stores the last time we sent a pain message. used to prevent chatspam from pain
nightmare ![code/modules/mob/living/carbon/carbon_defines.dm 47](git.png)
How many nightmare messages we have left to send
pose ![code/modules/mob/living/carbon/carbon_defines.dm 30](git.png)
Active emote/pose. Similar to flavor text
pulse ![code/modules/mob/living/carbon/carbon_defines.dm 33](git.png)
Current pulse of this mob. Updated by handle_pulse on life
wear_suit ![code/modules/mob/living/carbon/carbon_defines.dm 27](git.png)
The object stored on the exosuit slot of the mob. Strangly not on the Human level
wetlevel ![code/modules/mob/living/carbon/carbon_defines.dm 36](git.png)
Tracks how wet the mob is. Only used for examining the mob
Proc Details
can_breathe_helmet
Returns TRUE if an air tank compatible helmet is equipped.
can_breathe_internals
Returns TRUE if an air tank compatible mask or breathing tube is equipped.
can_breathe_mask
Returns TRUE if an air tank compatible mask is equipped.
can_breathe_tube
Returns TRUE if a breathing tube is equipped.
can_feel_pain
Whether or not a mob can feel pain.
Returns TRUE if the mob can feel pain, FALSE otherwise
clear_handcuffs
Removes a carbon's handcuffs, dropping them to the ground. Calls update_handcuffed(). Unbuckles if handcuffs were necessary for the buckle (pipe buckling, etc.)
Arguments:
- show_message - if TRUE, will display a visible message when restraints are removed. FALSE by default.
Returns:
- TRUE if handcuffs existed and were successfully removed, FALSE otherwise
clear_legcuffs
Removes a carbon's legcuffs, dropping them to the ground. Calls update_inv_legcuffed().
Arguments:
- show_message - if TRUE, will display a visible message when restraints are removed. FALSE by default.
Returns:
- TRUE if legcuffs existed and were successfully removed, FALSE otherwise
clear_restraints
Clears a carbon mob's handcuffs and legcuffs, dropping them to the ground.
Arguments:
- show_message - if TRUE, will display a visible message when restraints are removed. FALSE by default.
Returns:
- TRUE if handcuffs or legcuffs were removed, FALSE otherwise
dream
DREAMS
electrocute_act
Adds to the parent by also adding functionality to propagate shocks through pulling and doing some fluff effects.
examine_damage_flavor
Add specific damage flavor here.
examine_extra_damage_flavor
Add any extra info which should be within the "damage" block, the big warning span.
examine_extra_general_flavor
Add some last information in before HUDs get put through.
examine_handle_individual_limb
Special handlers for processing limbs go here, based on limb names in examine_visible_clothing.
examine_start_damage_block
Add whatever you want to start the damage block with here.
examine_visible_clothing
Get the message parts, in order, for a proper examine. Message parts should be as follows:
- Pronoun/intro for how they've got it on them
- The item itself
- Preposition for where it is
- the location it's in
Arguments represent whether to skip a certain slot when handling the message.
examine_what_am_i
Identify what this mob in particular is.
has_virus
Whether a virus worthy displaying on the HUD is present.
is_in_crit
Medical HUD! Basic mode needs suit sensors on. Whether the carbon mob is currently in crit.
pat_out
Handles patting out a fire on someone.
Removes 0.5 fire stacks per pat, with a 30% chance of the user burning their hand if they don't have adequate heat resistance. Arguments:
- src - The mob doing the patting
- target - The mob who is currently on fire
secondary_shock
Called slightly after electrocute act to reduce jittering and apply a secondary knockdown.
toggle_give
Toggles the /datum/click_intercept/give on or off for the src mob.
update_suit_sensors
HOOKS