A red headcrab day (#12396)

This commit is contained in:
Terilia
2019-10-27 00:26:34 -04:00
committed by variableundefined
parent 3aba865458
commit 49a70daba0
5 changed files with 63 additions and 132 deletions
@@ -5,8 +5,9 @@
icon_state = "headcrab"
icon_living = "headcrab"
icon_dead = "headcrab_dead"
health = 40
maxHealth = 40
health = 60
maxHealth = 60
dodging = 1
melee_damage_lower = 5
melee_damage_upper = 10
ranged = 1
@@ -18,7 +19,8 @@
attack_sound = 'sound/creatures/headcrab_attack.ogg'
speak_emote = list("hisses")
var/is_zombie = 0
stat_attack = DEAD //so they continue to attack when they are on the ground.
stat_attack = DEAD //so they continue to attack when they are on the ground.
robust_searching = 1
var/host_species = ""
var/list/human_overlays = list()
@@ -28,6 +30,17 @@
if(H.stat == DEAD || (!H.check_death_method() && H.health <= HEALTH_THRESHOLD_DEAD))
Zombify(H)
break
var/cycles = 4
if(cycles >= 4)
for(var/mob/living/simple_animal/K in oview(src, 1)) //Only for corpse right next to/on same tile
if(K.stat == DEAD || (!K.check_death_method() && K.health <= HEALTH_THRESHOLD_DEAD))
visible_message("<span class='danger'>[src] consumes [target] whole!</span>")
if(health < maxHealth)
health += 10
qdel(K)
break
cycles = 0
cycles++
..()
/mob/living/simple_animal/hostile/headcrab/OpenFire(atom/A)
@@ -51,7 +64,7 @@
var/obj/item/clothing/suit/armor/A = H.wear_suit
if(A.armor && A.armor["melee"])
maxHealth += A.armor["melee"] //That zombie's got armor, I want armor!
maxHealth += 50
maxHealth += 200
health = maxHealth
name = "zombie"
desc = "A corpse animated by the alien being on its head."
@@ -114,8 +127,8 @@
icon_state = "fast_headcrab"
icon_living = "fast_headcrab"
icon_dead = "fast_headcrab_dead"
health = 30
maxHealth = 30
health = 40
maxHealth = 40
ranged_cooldown_time = 30
jumpdistance = 8
jumpspeed = 2
@@ -144,11 +157,13 @@
icon_state = "poison_headcrab"
icon_living = "poison_headcrab"
icon_dead = "poison_headcrab_dead"
health = 60
maxHealth = 60
health = 80
maxHealth = 80
ranged_cooldown_time = 50
jumpdistance = 3
jumpspeed = 1
melee_damage_lower = 8
melee_damage_upper = 20
attack_sound = 'sound/creatures/ph_scream1.ogg'
speak_emote = list("screech")
@@ -167,6 +182,10 @@
/mob/living/simple_animal/hostile/headcrab/poison/AttackingTarget()
. = ..()
var/mob/living/carbon/C = target
if(C.can_inject(null, FALSE, "head", FALSE))
C.reagents.add_reagent("lsd", 5)
if(iscarbon(target) && target.reagents)
var/inject_target = pick("chest", "head")
var/mob/living/carbon/C = target
if(C.stunned || C.can_inject(null, FALSE, inject_target, FALSE))
if(C.eye_blurry < 60)
C.AdjustEyeBlurry(10)
visible_message("<span class='danger'>[src] buries its fangs deep into the [inject_target] of [target]!</span>")