//Alium nests. Essentially beds with an unbuckle delay that only aliums can buckle mobs to. /obj/structure/stool/bed/nest/manual_unbuckle(mob/user as mob) if(buckled_mob) if(buckled_mob.buckled == src) if(buckled_mob != user) buckled_mob.visible_message(\ "[user.name] pulls [buckled_mob.name] free from the sticky nest!",\ "[user.name] pulls you free from the gelatinous resin.",\ "You hear squelching...") buckled_mob.pixel_y = 0 unbuckle() else buckled_mob.visible_message(\ "[buckled_mob.name] struggles to break free of the gelatinous resin...",\ "You struggle to break free from the gelatinous resin...",\ "You hear squelching...") spawn(1200) if(buckled_mob && user.buckled == src) buckled_mob.pixel_y = 0 unbuckle() src.add_fingerprint(user) return /obj/structure/stool/bed/nest/buckle_mob(mob/M as mob, mob/user as mob) if ( !ismob(M) || (get_dist(src, user) > 1) || (M.loc != src.loc) || user.restrained() || usr.stat || M.buckled || istype(user, /mob/living/silicon/pai) ) return if(istype(M,/mob/living/carbon/alien)) return if(!istype(user,/mob/living/carbon/alien/humanoid)) return unbuckle() if(M == usr) return else M.visible_message(\ "[user.name] secretes a thick vile goo, securing [M.name] into [src]!",\ "[user.name] drenches you in a foul-smelling resin, trapping you in the [src]!",\ "You hear squelching...") M.buckled = src M.loc = src.loc M.dir = src.dir M.update_canmove() M.pixel_y = 6 src.buckled_mob = M src.add_fingerprint(user) return /obj/structure/stool/blob_act() del(src) /obj/structure/stool/bed/nest/attackby(obj/item/weapon/W as obj, mob/user as mob) var/aforce = W.force health = max(0, health - aforce) playsound(loc, 'attackblob.ogg', 100, 1) for(var/mob/M in viewers(src, 7)) M.show_message("[user] hits [src] with [W]!", 1) healthcheck() /obj/structure/stool/bed/nest/proc/healthcheck() if(health <=0) density = 0 del(src) return