initial commit - cross reference with 5th port - obviously has compile errors

This commit is contained in:
LetterJay
2016-07-03 02:17:19 -05:00
commit 35a1723e98
4355 changed files with 2221257 additions and 0 deletions
+108
View File
@@ -0,0 +1,108 @@
/obj/item/zombie_hand
name = "zombie claw"
desc = "A zombie's claw is its primary tool, capable of infecting \
unconcious or dead humans, butchering all other living things to \
sustain the zombie, forcing open airlock doors and opening \
child-safe caps on bottles."
flags = NODROP|ABSTRACT|DROPDEL
icon = 'icons/effects/blood.dmi'
icon_state = "bloodhand_left"
var/icon_left = "bloodhand_left"
var/icon_right = "bloodhand_right"
hitsound = 'sound/hallucinations/growl1.ogg'
force = 20
damtype = "brute"
var/removing_airlock = FALSE
/obj/item/zombie_hand/equipped(mob/user, slot)
. = ..()
switch(slot)
// Yes, these intentionally don't match
if(slot_l_hand)
icon_state = icon_right
if(slot_r_hand)
icon_state = icon_left
/obj/item/zombie_hand/afterattack(atom/target, mob/user, proximity_flag)
. = ..()
if(!proximity_flag)
return
if(istype(target, /obj/machinery/door/airlock) && !removing_airlock)
tear_airlock(target, user)
else if(isliving(target))
if(ishuman(target))
check_infection(target, user)
else
check_feast(target, user)
/obj/item/zombie_hand/proc/check_infection(mob/living/carbon/human/target, mob/user)
CHECK_DNA_AND_SPECIES(target)
if(NOZOMBIE in target.dna.species.specflags)
// cannot infect any NOZOMBIE subspecies (such as high functioning
// zombies)
return
var/obj/item/organ/body_egg/zombie_infection/infection
infection = target.getorganslot("zombie_infection")
if(!infection)
infection = new(target)
/obj/item/zombie_hand/proc/check_feast(mob/living/target, mob/living/user)
if(target.stat == DEAD)
var/hp_gained = target.maxHealth
target.gib()
user.adjustBruteLoss(-hp_gained)
user.adjustToxLoss(-hp_gained)
user.adjustFireLoss(-hp_gained)
user.adjustCloneLoss(-hp_gained)
user.adjustBrainLoss(-hp_gained) // Zom Bee gibbers "BRAAAAISNSs!1!"
/obj/item/zombie_hand/proc/tear_airlock(obj/machinery/door/airlock/A, mob/user)
removing_airlock = TRUE
user << "<span class='notice'>You start tearing apart the airlock...\
</span>"
playsound(src.loc, 'sound/machines/airlock_alien_prying.ogg', 100, 1)
A.audible_message("<span class='italics'>You hear a loud metallic \
grinding sound.</span>")
addtimer(src, "growl", 20, unique=FALSE, user)
if(do_after(user, delay=160, needhand=FALSE, target=A, progress=TRUE))
playsound(src.loc, 'sound/hallucinations/far_noise.ogg', 50, 1)
A.audible_message("<span class='danger'>With a screech, [A] is torn \
apart!</span>")
var/obj/structure/door_assembly/door = new A.assemblytype(get_turf(A))
door.density = 0
door.anchored = 1
door.name = "ravaged [door]"
door.desc = "An airlock that has been torn apart. Looks like it \
won't be keeping much out now."
qdel(A)
removing_airlock = FALSE
/obj/item/zombie_hand/proc/growl(mob/user)
if(removing_airlock)
playsound(src.loc, 'sound/hallucinations/growl3.ogg', 50, 1)
user.audible_message("<span class='warning'>[user] growls as \
their claws dig into the metal frame...</span>")
/obj/item/zombie_hand/suicide_act(mob/living/carbon/user)
// Suiciding as a zombie brings someone else in to play it
user.visible_message("<span class='suicide'>[user] is lying down.</span>")
if(!istype(user))
return
user.Weaken(30)
var/success = offer_control(user)
if(success)
user.visible_message("<span class='suicide'>[user] appears to have \
found new spirit.</span>")
return SHAME
else
user.visible_message("<span class='suicide'>[user] stops moving.\
</span>")
return OXYLOSS
+70
View File
@@ -0,0 +1,70 @@
#define START_TIMER reanimation_timer = world.time + rand(600,1200)
/obj/item/organ/body_egg/zombie_infection
name = "festering ooze"
desc = "A black web of pus and vicera."
zone = "head"
slot = "zombie_infection"
var/reanimation_timer
var/datum/species/old_species
var/living_transformation_time = 5
var/converts_living = FALSE
/obj/item/organ/body_egg/zombie_infection/New()
. = ..()
zombie_infection_list += src
/obj/item/organ/body_egg/zombie_infection/Destroy()
zombie_infection_list -= src
. = ..()
/obj/item/organ/body_egg/zombie_infection/on_find(mob/living/finder)
finder << "<span class='warning'>Inside the head is a disgusting black \
web of pus and vicera, bound tightly around the brain like some \
biological harness.</span>"
/obj/item/organ/body_egg/zombie_infection/egg_process()
if(!ishuman(owner)) // We do not support monkey or xeno zombies. Yet.
qdel(src)
return
else if(reanimation_timer && (reanimation_timer < world.time))
zombify() // Rise and shine, Mr Romero... rise and shine.
reanimation_timer = null
else if(owner.stat == DEAD && (!reanimation_timer))
START_TIMER
else if(converts_living && !iszombie(owner) && !reanimation_timer)
START_TIMER
/obj/item/organ/body_egg/zombie_infection/Remove(mob/living/carbon/M, special = 0)
. = ..()
CHECK_DNA_AND_SPECIES(M)
if(iszombie(M) && old_species)
M.set_species(old_species)
/obj/item/organ/body_egg/zombie_infection/proc/zombify()
CHECK_DNA_AND_SPECIES(owner)
if(!iszombie(owner))
old_species = owner.dna.species.type
owner.grab_ghost()
owner.set_species(/datum/species/zombie/infectious)
var/old_stat = owner.stat // Save for the message
owner.revive(full_heal = TRUE)
switch(old_stat)
if(DEAD, UNCONSCIOUS)
owner.visible_message("<span class='danger'>[owner] staggers to \
their feet!</span>")
owner << "<span class='danger'>You stagger to your feet!</span>"
// Conscious conversions will generally only happen for an event
// or for a converts_living=TRUE infection
if(CONSCIOUS)
owner.visible_message("<span class='danger'>[owner] suddenly \
convulses, as they gain a ravenous hunger in their \
eyes!</span>",
"<span class='alien'>You HUNGER!</span>")
playsound(owner.loc, 'sound/hallucinations/growl3.ogg', 50, 1)
owner.do_jitter_animation(living_transformation_time)
owner.Stun(living_transformation_time)
owner << "<span class='alertalien'>You are now a zombie!</span>"
#undef START_TIMER