mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 08:39:12 +01:00
Instead of instantly just zapping the contents away, they now swirl the stuff around before making it vanish one item at a time, keeping the things contained for a 20 sec cooldown time before it gets zapped to the exit landmark, this serving as both, spam protection and a chance for the possible player victim to watch the action finish before they're bluespaced away.
Also makes the exit landmark use a new contained item retrieval system instead of just making a messy lagpile in the open. The machine also processes down certain things, these icluding foods, organs, and vore eggs, making the thing not be useful as a food vendor for your dear enemies, and popping open vore eggs so that nobody needs to end up blindly guessing mystery contents. Also the machine has a funny little feature to get rid of the unwanted contents as well. (SPOILERS: it's a "Muffin Monster" mode with a twist. The monster is an actual voremob contained within the machine, and if active, the contents will end up in its gut. Deactivating will release the contents back into the machine. Sounds like some sorta Bethesda level brainfart, right? But I did it on purpose for another even funnier feature: Emagging the machine while the mode is active will release the monster as a hostile mob lmao) Not even gonna bother marking as chompedit for now cause it was already all my code and I doubt anyone else up there's gonna be touching the file and might just end up porting it there anyway if I somehow get a charitable urge to provide them with non-critical funfeatures again :v
This commit is contained in:
@@ -4,30 +4,55 @@
|
||||
/obj/structure/toilet
|
||||
var/teleplumbed = FALSE
|
||||
var/exit_landmark
|
||||
var/exit_container
|
||||
var/refill_cooldown = 200
|
||||
var/refilling = FALSE
|
||||
|
||||
/obj/structure/toilet/Initialize()
|
||||
if(z in global.using_map.map_levels)
|
||||
teleplumbed = TRUE
|
||||
exit_landmark = locate(/obj/effect/landmark/teleplumb_exit)
|
||||
exit_container = locate(/obj/structure/biowaste_tank)
|
||||
if(exit_container)
|
||||
exit_landmark = exit_container
|
||||
if(teleplumbed && exit_landmark)
|
||||
desc = "The BS-500, a bluespace rift-rotation-based waste disposal unit for small matter. This one seems remarkably clean."
|
||||
return ..()
|
||||
|
||||
/obj/structure/toilet/attack_hand(mob/living/user as mob)
|
||||
if(open && teleplumbed && exit_landmark)
|
||||
if(open && teleplumbed && exit_landmark && !refilling)
|
||||
var/list/bowl_contents = list()
|
||||
for(var/obj/item/I in loc.contents)
|
||||
if(istype(I) && !I.anchored)
|
||||
bowl_contents += I
|
||||
if(bowl_contents.len)
|
||||
refilling = TRUE
|
||||
user.visible_message("<span class='notice'>[user] flushes the toilet.</span>", "<span class='notice'>You flush the toilet.</span>")
|
||||
playsound(src, 'sound/vore/death7.ogg', 50, 1) //Got lazy about getting new sound files. Have a sick remix lmao.
|
||||
playsound(src, 'sound/effects/bubbles.ogg', 50, 1)
|
||||
playsound(src, 'sound/mecha/powerup.ogg', 30, 1)
|
||||
var/bowl_conga = 0
|
||||
for(var/obj/item/F in bowl_contents)
|
||||
F.forceMove(get_turf(exit_landmark))
|
||||
bowl_contents -= F
|
||||
if(bowl_conga < 150)
|
||||
bowl_conga += 2
|
||||
spawn(3 + bowl_conga)
|
||||
F.SpinAnimation(5,3)
|
||||
spawn(15)
|
||||
F.forceMove(src)
|
||||
spawn(refill_cooldown)
|
||||
for(var/obj/item/F in bowl_contents)
|
||||
F.forceMove(exit_landmark)
|
||||
bowl_contents.Cut()
|
||||
refilling = FALSE
|
||||
return
|
||||
if(refilling)
|
||||
playsound(src, 'sound/machines/door_locked.ogg', 30, 1)
|
||||
to_chat(user, "<span class='notice'>The toilet is still refilling its tank.</span>")
|
||||
return ..()
|
||||
|
||||
/obj/structure/toilet/attackby(obj/item/I as obj, mob/living/user as mob)
|
||||
if(refilling) //No cistern interactions until bowl contents have been dealt with.
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/structure/toilet/attack_ai(mob/user as mob)
|
||||
@@ -39,3 +64,78 @@
|
||||
|
||||
/obj/effect/landmark/teleplumb_exit
|
||||
name = "teleplumbing exit"
|
||||
|
||||
/obj/effect/landmark/teleplumb_exit/Entered(atom/movable/thing, atom/OldLoc)
|
||||
thing.forceMove(get_turf(src))
|
||||
|
||||
/obj/structure/biowaste_tank
|
||||
name = "Bluespace Bio-Compostor Terminal"
|
||||
icon = 'icons/obj/survival_pod_comp.dmi'
|
||||
icon_state = "pod_computer"
|
||||
desc = "It appears to be a massive sealed container attached to some heavy machinery and thick tubes containing a whole network of interdimensional pipeworks. It appears whatever vanished down the station's toilets ends up in this thing."
|
||||
anchored = TRUE
|
||||
density = TRUE
|
||||
var/muffin_mode = FALSE
|
||||
var/mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster
|
||||
|
||||
/obj/structure/biowaste_tank/Initialize()
|
||||
muffinmonster = new /mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster(src)
|
||||
muffinmonster.name = "Activate Muffin Monster"
|
||||
muffinmonster.voremob_loaded = TRUE
|
||||
muffinmonster.init_vore()
|
||||
return ..()
|
||||
|
||||
/obj/structure/biowaste_tank/AllowDrop()
|
||||
return TRUE
|
||||
|
||||
/obj/structure/biowaste_tank/Entered(atom/movable/thing, atom/OldLoc)
|
||||
if(istype(thing, /obj/item/weapon/reagent_containers/food))
|
||||
qdel(thing)
|
||||
return
|
||||
if(istype(thing, /obj/item/organ))
|
||||
qdel(thing)
|
||||
return
|
||||
if(istype(thing, /obj/item/weapon/storage/vore_egg))
|
||||
if(thing.contents.len)
|
||||
for(var/atom/movable/C in thing.contents)
|
||||
C.forceMove(src)
|
||||
qdel(thing)
|
||||
return
|
||||
if(muffin_mode)
|
||||
if(muffinmonster)
|
||||
thing.forceMove(muffinmonster.vore_selected)
|
||||
else
|
||||
muffin_mode = FALSE
|
||||
|
||||
/obj/structure/biowaste_tank/attack_hand(var/mob/user as mob)
|
||||
if(contents.len)
|
||||
var/atom/movable/choice = tgui_input_list(usr, "It appears the machine has caught some items in the lost-and-found filter system. Would you like to eject something?", "Item Retrieval Console", contents)
|
||||
if(choice)
|
||||
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
|
||||
return
|
||||
if(choice == muffinmonster && muffinmonster.loc == src)
|
||||
muffin_mode = !muffin_mode
|
||||
if(muffin_mode)
|
||||
muffinmonster.name = "Deactivate Muffin Monster"
|
||||
for(var/atom/movable/C in contents)
|
||||
if(C == muffinmonster)
|
||||
continue
|
||||
C.forceMove(muffinmonster.vore_selected)
|
||||
else
|
||||
muffinmonster.name = "Activate Muffin Monster"
|
||||
muffinmonster.release_vore_contents(include_absorbed = TRUE, silent = TRUE)
|
||||
return
|
||||
else
|
||||
choice.forceMove(get_turf(src))
|
||||
|
||||
/obj/structure/biowaste_tank/emag_act(var/remaining_charges, var/mob/user, var/emag_source)
|
||||
if(muffinmonster && muffin_mode)
|
||||
muffinmonster.name = "Muffin Monster"
|
||||
muffinmonster.forceMove(get_turf(src))
|
||||
muffinmonster = null
|
||||
muffin_mode = FALSE
|
||||
|
||||
/mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster
|
||||
name = "Muffin Monster"
|
||||
desc = "OH GOD IT'S LOOSE!"
|
||||
vore_default_item_mode = IM_DIGEST
|
||||
Reference in New Issue
Block a user