cease those screams

This commit is contained in:
SandPoot
2024-04-05 18:39:33 -03:00
parent 5a0ad158e8
commit 7ec9e65dcf
13 changed files with 48 additions and 49 deletions
@@ -25,29 +25,3 @@
hud_used.thirst.icon_state = "hydration3"
if(0 to THIRST_LEVEL_PARCHED)
hud_used.thirst.icon_state = "hydration4"
//It's here so it doesn't make a big mess on randomverbs.dm,
//also because of this you can proccall it, why would you if you have smite?
/mob/living/proc/pregoodbye(C)
if(isanimal(C))
var/mob/living/simple_animal/D = C
D.toggle_ai(AI_OFF)
AllImmobility(900, TRUE, TRUE) // Complete 15 minutes of stun, hopefully they shouldn't take that long
playsound(C, "modular_sand/sound/effects/admin_punish/changetheworld.ogg", 100, FALSE)
say("Change the world")
stoplag(20)
playsound(C, "modular_sand/sound/effects/admin_punish/myfinalmessage.ogg", 100, FALSE)
say("My final message")
stoplag(20)
playsound(C, "modular_sand/sound/effects/admin_punish/goodbye.ogg", 100, FALSE)
say("Goodbye.")
stoplag(20)
playsound(C, "modular_sand/sound/effects/admin_punish/endjingle.ogg", 100, FALSE)
goodbye()
/mob/living/proc/goodbye() //this must be separate because it's a loop!
while(alpha >= 10)
alpha = alpha - 7
stoplag(1)
stoplag(2)
Destroy()
@@ -34,3 +34,27 @@
mob_size = MOB_SIZE_HUMAN
if(1.21 to INFINITY)
mob_size = MOB_SIZE_LARGE
// It's here so it doesn't make a big mess on randomverbs.dm,
// also because of this you can proccall it, why would you if you have smite?
// This code was bad. For future reference, stoplag() and sleep() are very different and not at all interchangeable.
// You can also use animate() to cleanly animate variables like alpha.
// Finally, NEVER call Destroy() directly.
/mob/living/proc/goodbye()
set waitfor = FALSE
if(isanimal(src))
var/mob/living/simple_animal/simple_animal = src
simple_animal.toggle_ai(AI_OFF)
AllImmobility(INFINITY, TRUE, TRUE)
playsound(src, "modular_sand/sound/effects/admin_punish/changetheworld.ogg", 100, FALSE)
say("Change the world")
sleep(20)
playsound(src, "modular_sand/sound/effects/admin_punish/myfinalmessage.ogg", 100, FALSE)
say("My final message")
sleep(20)
playsound(src, "modular_sand/sound/effects/admin_punish/goodbye.ogg", 100, FALSE)
say("Goodbye.")
sleep(20)
playsound(src, "modular_sand/sound/effects/admin_punish/endjingle.ogg", 100, FALSE)
QDEL_IN(src, 3.5 SECONDS)
animate(src, alpha = 10, 3.5 SECONDS)