mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
* Adds attacktext2 and friendly2 messages for personal "you" messages in combat. * Adds response_help2, response_disarm2 and response_harm2 -messages for interacting with simple animals. Also removes unnecessary, already inherited, ones. * Small extra: Adds personal messages for gun firing. * Adds personal messages to grabs and fixes shoe stealing messages. * Fixes open someone else's internals valve pronoun. * Replaces response_help --> response_help_continuous, response_help2 --> response_help_simple etc. Also adds autodoc to simple_animal.dm variables.
60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
/mob/living/simple_animal/hostile/zombie
|
|
name = "Shambling Corpse"
|
|
desc = "When there is no more room in hell, the dead will walk in outer space."
|
|
icon = 'icons/mob/simple_human.dmi'
|
|
icon_state = "zombie"
|
|
icon_living = "zombie"
|
|
mob_biotypes = MOB_ORGANIC|MOB_HUMANOID
|
|
speak_chance = 0
|
|
stat_attack = UNCONSCIOUS //braains
|
|
maxHealth = 100
|
|
health = 100
|
|
harm_intent_damage = 5
|
|
melee_damage_lower = 21
|
|
melee_damage_upper = 21
|
|
attack_verb_continuous = "bites"
|
|
attack_verb_simple = "bite"
|
|
attack_sound = 'sound/hallucinations/growl1.ogg'
|
|
a_intent = INTENT_HARM
|
|
atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
|
|
minbodytemp = 0
|
|
spacewalk = FALSE
|
|
status_flags = CANPUSH
|
|
del_on_death = 1
|
|
var/zombiejob = "Medical Doctor"
|
|
var/infection_chance = 0
|
|
var/obj/effect/mob_spawn/human/corpse/delayed/corpse
|
|
|
|
/mob/living/simple_animal/hostile/zombie/Initialize(mapload)
|
|
. = ..()
|
|
setup_visuals()
|
|
|
|
/mob/living/simple_animal/hostile/zombie/proc/setup_visuals()
|
|
var/datum/preferences/dummy_prefs = new
|
|
dummy_prefs.pref_species = new /datum/species/zombie
|
|
dummy_prefs.randomise[RANDOM_BODY] = TRUE
|
|
var/datum/job/J = SSjob.GetJob(zombiejob)
|
|
var/datum/outfit/O
|
|
if(J.outfit)
|
|
O = new J.outfit
|
|
//They have claws now.
|
|
O.r_hand = null
|
|
O.l_hand = null
|
|
|
|
var/icon/P = get_flat_human_icon("zombie_[zombiejob]", J , dummy_prefs, "zombie", outfit_override = O)
|
|
icon = P
|
|
corpse = new(src)
|
|
corpse.outfit = O
|
|
corpse.mob_species = /datum/species/zombie
|
|
corpse.mob_name = name
|
|
|
|
/mob/living/simple_animal/hostile/zombie/AttackingTarget()
|
|
. = ..()
|
|
if(. && ishuman(target) && prob(infection_chance))
|
|
try_to_zombie_infect(target)
|
|
|
|
/mob/living/simple_animal/hostile/zombie/drop_loot()
|
|
. = ..()
|
|
corpse.forceMove(drop_location())
|
|
corpse.create()
|