Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds simplemob zombies (DO NOT MERGE YET) #92

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/mob/living/simple_mob/humanoid/zombie
name = "zombie"
desc = "A rotting human - or at least, what remains of one."
tt_desc = "Homo putredine"
speak_emote = "growls"
meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat/human

maxHealth = 70
health = 70
movement_cooldown = 20
poison_resist = 1
unsuitable_atoms_damage = 0
taser_kill = 0

melee_damage_lower = 6
melee_damage_upper = 12
attack_sharp = 1
attack_edge = 1
attack_sound = 'sound/weapons/bite.ogg'

icon = 'icons/mob/animal.dmi'
icon_state = "zombie"
icon_living = "zombie"
icon_dead = "zombie_dead"

faction = "zombie"
ai_holder_type = /datum/ai_holder/simple_mob/melee

response_help = "touches"
response_disarm = "pushes aside"
response_harm = "punches"

/mob/living/simple_mob/humanoid/zombie/proc/Revive()
spawn(rand(75, 600)) //yes it's awful to have nested sleep() statements, but short of some funky goto usage, this is the only way
visible_message(pick(
"[src] twitches slightly...",
"Did [src] just move?",
"[src]'s wounds seem a little less severe than they were a moment ago...",
"A tumourous growth appears and fades on [src], leaving their wounds slightly smaller than before.",
"A faint groaning noise comes from [src]. Just the wind, right?",
"[src]'s fingers spasm, even as it lies dead on the ground.",
"[src]'s eyes reflexively flit around for a moment."))
spawn(rand(75, 600))
visible_message(pick(
"[src] twitches slightly...",
"Did [src] just move?",
"[src]'s wounds seem a little less severe than they were a moment ago...",
"A tumourous growth appears and fades on [src], leaving their wounds slightly smaller than before.",
"A faint groaning noise comes from [src]. Just the wind, right?",
"[src]'s fingers spasm, even as it lies dead on the ground.",
"[src]'s eyes reflexively flit around for a moment."))
spawn(rand(75, 600))
bruteloss = 0
sleep(20) //We need to delay for a moment so that health can catch up with bruteloss
if(health > 0)
icon_state = "zombie"
stat -= DEAD

/mob/living/simple_mob/humanoid/zombie/death()
stat += DEAD
icon_state = "zombie_dead"
if((health + bruteloss) > 0) //burn damage puts zombies down for good
Revive()
Binary file modified icons/mob/animal.dmi
Binary file not shown.
3 changes: 3 additions & 0 deletions polaris.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,8 @@
#include "code\modules\mob\living\silicon\robot\subtypes\lost_drone.dm"
#include "code\modules\mob\living\silicon\robot\subtypes\syndicate.dm"
#include "code\modules\mob\living\simple_animal\corpse.dm"
#include "code\modules\mob\living\simple_animal\simple_animal.dm"
#include "code\modules\mob\living\simple_animal\simple_hud.dm"
#include "code\modules\mob\living\simple_mob\appearance.dm"
#include "code\modules\mob\living\simple_mob\combat.dm"
#include "code\modules\mob\living\simple_mob\defense.dm"
Expand Down Expand Up @@ -2255,6 +2257,7 @@
#include "code\modules\mob\living\simple_mob\subtypes\humanoid\merc\mercs.dm"
#include "code\modules\mob\living\simple_mob\subtypes\humanoid\merc\pirates.dm"
#include "code\modules\mob\living\simple_mob\subtypes\humanoid\merc\russian.dm"
#include "code\modules\mob\living\simple_mob\subtypes\humanoid\monster\zombie.dm"
#include "code\modules\mob\living\simple_mob\subtypes\illusion\illusion.dm"
#include "code\modules\mob\living\simple_mob\subtypes\mechanical\combat_drone.dm"
#include "code\modules\mob\living\simple_mob\subtypes\mechanical\golem.dm"
Expand Down