simple_animal ![code/modules/mob/living/simple_animal/simple_animal.dm 2](git.png)
Simple, mostly AI-controlled critters, such as pets, bots, and drones.
Vars | |
AIStatus | The Status of our AI, can be set to AI_ON (On, usual processing), AI_IDLE (Will not process, but will return to AI_ON if an enemy comes near), AI_OFF (Off, Not processing ever). |
---|---|
access_card | Simple_animal access. Innate access uses an internal ID card. |
animal_species | Sorry, no spider+corgi buttbabies. |
armour_penetration | How much armour they ignore, as a flat reduction from the targets armour value. |
atmos_requirements | Atmos effect - Yes, you can make creatures that require plasma or co2 to survive. N2O is a trace gas and handled separately, hence why it isn't here. It'd be hard to add it. Hard and me don't mix (Yes, yes make all the dick jokes you want with that.) - Errorage Leaving something at 0 means it's off - has no maximum. |
attack_sound | Sound played when the critter attacks. |
attack_verb_continuous | Attacking verb in present continuous tense. |
attack_verb_simple | Attacking verb in present simple tense. |
attack_vis_effect | Override for the visual attack effect shown on 'do_attack_animation()'. |
attacked_sound | Played when someone punches the creature. |
bare_wound_bonus | How much bare wounding power it has |
can_have_ai | once we have become sentient, we can never go back. |
childtype | Hot simple_animal baby making vars. |
damage_coeff | 1 for full damage , 0 for none , -1 for 1:1 heal from that source. |
del_on_death | Causes mob to be deleted on death, useful for mobs that spawn lootable corpses. |
emote_cooldown | Limits how often mobs can hunt other mobs |
emote_hear | Hearable emotes |
emote_see | Unlike speak_emote, the list of things in this variable only show by themselves with no spoken text. IE: Ian barks, Ian yaps |
environment_smash | Set to 1 to allow breaking of crates,lockers,racks,tables; 2 for walls; 3 for Rwalls. |
flip_on_death | Flip the sprite upside down on death. Mostly here for things lacking custom dead sprites. |
footstep_type | What kind of footstep this mob should have. Null if it shouldn't have any. |
friendly_verb_continuous | Attacking, but without damage, verb in present continuous tense. |
friendly_verb_simple | Attacking, but without damage, verb in present simple tense. |
gold_core_spawnable | If the mob can be spawned with a gold slime core. HOSTILE_SPAWN are spawned with plasma, FRIENDLY_SPAWN are spawned with blood. |
icon_dead | Icon when the animal is dead. Don't use animated icons for this. |
icon_gib | We only try to show a gibbing animation if this exists. |
inept_hunter | Is this animal horrible at hunting? |
loot | List of things spawned at mob's loc when it dies. |
max_staminaloss | Maximum amount of stamina damage the mob can be inflicted with total |
maxbodytemp | Maximal body temperature without receiving damage |
melee_damage_type | Damage type of a simple mob's melee attack, should it do damage. |
minbodytemp | Minimal body temperature without receiving damage |
my_z | I don't want to confuse this with client registered_z. |
obj_damage | how much damage this simple animal does to objects, if any. |
prevent_goto_movement | Makes Goto() return FALSE and not start a move loop |
response_disarm_continuous | Disarm-intent verb in present continuous tense. |
response_disarm_simple | Disarm-intent verb in present simple tense. |
response_harm_continuous | Harm-intent verb in present continuous tense. |
response_harm_simple | Harm-intent verb in present simple tense. |
response_help_continuous | When someone interacts with the simple animal. Help-intent verb in present continuous tense. |
response_help_simple | Help-intent verb in present simple tense. |
sentience_type | Sentience type, for slime potions. |
sharpness | If the attacks from this are sharp |
shouldwakeup | convenience var for forcibly waking up an idling AI on next check. |
simple_mob_flags | Generic flags |
speak_emote | Emotes while speaking IE: Ian [emote], [text] -- Ian barks, "WOOF!". Spoken text is generated from the speak variable. |
speed | LETS SEE IF I CAN SET SPEEDS FOR SIMPLE MOBS WITHOUT DESTROYING EVERYTHING. Higher speed is slower, negative speed is faster. |
stamina_recovery | How much stamina the mob recovers per second |
stop_automated_movement | Use this to temporarely stop random movement or to if you write special movement code for animals. |
stop_automated_movement_when_pulled | When set to 1 this stops the animal from moving when someone is pulling it. |
temperature_normalization_speed | How fast the mob's temperature normalizes. The greater the value, the slower their temperature normalizes. Should always be greater than 0. |
turns_per_move | ticks up every time handle_automated_movement() is called, which is every 2 seconds at the time of documenting. 1 turns per move is 1 movement every 2 seconds. |
unsuitable_atmos_damage | This damage is taken when atmos doesn't fit all the requirements above. |
unsuitable_cold_damage | This damage is taken when the body temp is too cold. |
unsuitable_heat_damage | This damage is taken when the body temp is too hot. |
wander | Does the mob wander around when idle? |
weather_immunities | List of weather immunity traits that are then added on Initialize(), see traits.dm. |
wound_bonus | How much wounding power it has |
Procs | |
add_cell_sample | This proc is used for adding the swabbale element to mobs so that they are able to be biopsied and making sure holographic and butter-based creatures don't yield viable cells samples. |
adjustHealth | Adjusts the health of a simple mob by a set amount and wakes AI if its idle to react |
ex_act_devastate | Called when a devastating explosive acts on this mob |
ex_act_heavy | Called when a heavy explosive acts on this mob |
ex_act_light | Called when a light explosive acts on this mob |
update_stamina | Updates the simple mob's stamina loss. |
Var Details
AIStatus ![code/modules/mob/living/simple_animal/simple_animal.dm 135](git.png)
The Status of our AI, can be set to AI_ON (On, usual processing), AI_IDLE (Will not process, but will return to AI_ON if an enemy comes near), AI_OFF (Off, Not processing ever).
access_card ![code/modules/mob/living/simple_animal/simple_animal.dm 117](git.png)
Simple_animal access. Innate access uses an internal ID card.
animal_species ![code/modules/mob/living/simple_animal/simple_animal.dm 113](git.png)
Sorry, no spider+corgi buttbabies.
armour_penetration ![code/modules/mob/living/simple_animal/simple_animal.dm 86](git.png)
How much armour they ignore, as a flat reduction from the targets armour value.
atmos_requirements ![code/modules/mob/living/simple_animal/simple_animal.dm 73](git.png)
Atmos effect - Yes, you can make creatures that require plasma or co2 to survive. N2O is a trace gas and handled separately, hence why it isn't here. It'd be hard to add it. Hard and me don't mix (Yes, yes make all the dick jokes you want with that.) - Errorage Leaving something at 0 means it's off - has no maximum.
attack_sound ![code/modules/mob/living/simple_animal/simple_animal.dm 96](git.png)
Sound played when the critter attacks.
attack_verb_continuous ![code/modules/mob/living/simple_animal/simple_animal.dm 92](git.png)
Attacking verb in present continuous tense.
attack_verb_simple ![code/modules/mob/living/simple_animal/simple_animal.dm 94](git.png)
Attacking verb in present simple tense.
attack_vis_effect ![code/modules/mob/living/simple_animal/simple_animal.dm 98](git.png)
Override for the visual attack effect shown on 'do_attack_animation()'.
attacked_sound ![code/modules/mob/living/simple_animal/simple_animal.dm 132](git.png)
Played when someone punches the creature.
bare_wound_bonus ![code/modules/mob/living/simple_animal/simple_animal.dm 150](git.png)
How much bare wounding power it has
can_have_ai ![code/modules/mob/living/simple_animal/simple_animal.dm 137](git.png)
once we have become sentient, we can never go back.
childtype ![code/modules/mob/living/simple_animal/simple_animal.dm 110](git.png)
Hot simple_animal baby making vars.
damage_coeff ![code/modules/mob/living/simple_animal/simple_animal.dm 90](git.png)
1 for full damage , 0 for none , -1 for 1:1 heal from that source.
del_on_death ![code/modules/mob/living/simple_animal/simple_animal.dm 127](git.png)
Causes mob to be deleted on death, useful for mobs that spawn lootable corpses.
emote_cooldown ![code/modules/mob/living/simple_animal/simple_animal.dm 157](git.png)
Limits how often mobs can hunt other mobs
emote_hear ![code/modules/mob/living/simple_animal/simple_animal.dm 24](git.png)
Hearable emotes
emote_see ![code/modules/mob/living/simple_animal/simple_animal.dm 26](git.png)
Unlike speak_emote, the list of things in this variable only show by themselves with no spoken text. IE: Ian barks, Ian yaps
environment_smash ![code/modules/mob/living/simple_animal/simple_animal.dm 104](git.png)
Set to 1 to allow breaking of crates,lockers,racks,tables; 2 for walls; 3 for Rwalls.
flip_on_death ![code/modules/mob/living/simple_animal/simple_animal.dm 17](git.png)
Flip the sprite upside down on death. Mostly here for things lacking custom dead sprites.
footstep_type ![code/modules/mob/living/simple_animal/simple_animal.dm 145](git.png)
What kind of footstep this mob should have. Null if it shouldn't have any.
friendly_verb_continuous ![code/modules/mob/living/simple_animal/simple_animal.dm 100](git.png)
Attacking, but without damage, verb in present continuous tense.
friendly_verb_simple ![code/modules/mob/living/simple_animal/simple_animal.dm 102](git.png)
Attacking, but without damage, verb in present simple tense.
gold_core_spawnable ![code/modules/mob/living/simple_animal/simple_animal.dm 119](git.png)
If the mob can be spawned with a gold slime core. HOSTILE_SPAWN are spawned with plasma, FRIENDLY_SPAWN are spawned with blood.
icon_dead ![code/modules/mob/living/simple_animal/simple_animal.dm 13](git.png)
Icon when the animal is dead. Don't use animated icons for this.
icon_gib ![code/modules/mob/living/simple_animal/simple_animal.dm 15](git.png)
We only try to show a gibbing animation if this exists.
inept_hunter ![code/modules/mob/living/simple_animal/simple_animal.dm 161](git.png)
Is this animal horrible at hunting?
loot ![code/modules/mob/living/simple_animal/simple_animal.dm 125](git.png)
List of things spawned at mob's loc when it dies.
max_staminaloss ![code/modules/mob/living/simple_animal/simple_animal.dm 55](git.png)
Maximum amount of stamina damage the mob can be inflicted with total
maxbodytemp ![code/modules/mob/living/simple_animal/simple_animal.dm 62](git.png)
Maximal body temperature without receiving damage
melee_damage_type ![code/modules/mob/living/simple_animal/simple_animal.dm 88](git.png)
Damage type of a simple mob's melee attack, should it do damage.
minbodytemp ![code/modules/mob/living/simple_animal/simple_animal.dm 60](git.png)
Minimal body temperature without receiving damage
my_z ![code/modules/mob/living/simple_animal/simple_animal.dm 143](git.png)
I don't want to confuse this with client registered_z.
obj_damage ![code/modules/mob/living/simple_animal/simple_animal.dm 84](git.png)
how much damage this simple animal does to objects, if any.
prevent_goto_movement ![code/modules/mob/living/simple_animal/simple_animal.dm 36](git.png)
Makes Goto() return FALSE and not start a move loop
response_disarm_continuous ![code/modules/mob/living/simple_animal/simple_animal.dm 46](git.png)
Disarm-intent verb in present continuous tense.
response_disarm_simple ![code/modules/mob/living/simple_animal/simple_animal.dm 48](git.png)
Disarm-intent verb in present simple tense.
response_harm_continuous ![code/modules/mob/living/simple_animal/simple_animal.dm 50](git.png)
Harm-intent verb in present continuous tense.
response_harm_simple ![code/modules/mob/living/simple_animal/simple_animal.dm 52](git.png)
Harm-intent verb in present simple tense.
response_help_continuous ![code/modules/mob/living/simple_animal/simple_animal.dm 42](git.png)
When someone interacts with the simple animal. Help-intent verb in present continuous tense.
response_help_simple ![code/modules/mob/living/simple_animal/simple_animal.dm 44](git.png)
Help-intent verb in present simple tense.
sentience_type ![code/modules/mob/living/simple_animal/simple_animal.dm 122](git.png)
Sentience type, for slime potions.
sharpness ![code/modules/mob/living/simple_animal/simple_animal.dm 152](git.png)
If the attacks from this are sharp
shouldwakeup ![code/modules/mob/living/simple_animal/simple_animal.dm 140](git.png)
convenience var for forcibly waking up an idling AI on next check.
simple_mob_flags ![code/modules/mob/living/simple_animal/simple_animal.dm 154](git.png)
Generic flags
speak_emote ![code/modules/mob/living/simple_animal/simple_animal.dm 21](git.png)
Emotes while speaking IE: Ian [emote], [text]
-- Ian barks, "WOOF!".
Spoken text is generated from the speak variable.
speed ![code/modules/mob/living/simple_animal/simple_animal.dm 107](git.png)
LETS SEE IF I CAN SET SPEEDS FOR SIMPLE MOBS WITHOUT DESTROYING EVERYTHING. Higher speed is slower, negative speed is faster.
stamina_recovery ![code/modules/mob/living/simple_animal/simple_animal.dm 57](git.png)
How much stamina the mob recovers per second
stop_automated_movement ![code/modules/mob/living/simple_animal/simple_animal.dm 32](git.png)
Use this to temporarely stop random movement or to if you write special movement code for animals.
stop_automated_movement_when_pulled ![code/modules/mob/living/simple_animal/simple_animal.dm 38](git.png)
When set to 1 this stops the animal from moving when someone is pulling it.
temperature_normalization_speed ![code/modules/mob/living/simple_animal/simple_animal.dm 78](git.png)
How fast the mob's temperature normalizes. The greater the value, the slower their temperature normalizes. Should always be greater than 0.
turns_per_move ![code/modules/mob/living/simple_animal/simple_animal.dm 29](git.png)
ticks up every time handle_automated_movement()
is called, which is every 2 seconds at the time of documenting. 1 turns per move is 1 movement every 2 seconds.
unsuitable_atmos_damage ![code/modules/mob/living/simple_animal/simple_animal.dm 75](git.png)
This damage is taken when atmos doesn't fit all the requirements above.
unsuitable_cold_damage ![code/modules/mob/living/simple_animal/simple_animal.dm 64](git.png)
This damage is taken when the body temp is too cold.
unsuitable_heat_damage ![code/modules/mob/living/simple_animal/simple_animal.dm 66](git.png)
This damage is taken when the body temp is too hot.
wander ![code/modules/mob/living/simple_animal/simple_animal.dm 34](git.png)
Does the mob wander around when idle?
weather_immunities ![code/modules/mob/living/simple_animal/simple_animal.dm 69](git.png)
List of weather immunity traits that are then added on Initialize(), see traits.dm.
wound_bonus ![code/modules/mob/living/simple_animal/simple_animal.dm 148](git.png)
How much wounding power it has
Proc Details
add_cell_sample
This proc is used for adding the swabbale element to mobs so that they are able to be biopsied and making sure holographic and butter-based creatures don't yield viable cells samples.
adjustHealth
Adjusts the health of a simple mob by a set amount and wakes AI if its idle to react
Arguments:
- amount The amount that will be used to adjust the mob's health
- updating_health If the mob's health should be immediately updated to the new value
- forced If we should force update the adjustment of the mob's health no matter the restrictions, like TRAIT_GODMODE
ex_act_devastate
Called when a devastating explosive acts on this mob
ex_act_heavy
Called when a heavy explosive acts on this mob
ex_act_light
Called when a light explosive acts on this mob
update_stamina
Updates the simple mob's stamina loss.
Updates the speed and staminaloss of a given simplemob. Reduces the stamina loss by stamina_recovery