mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-22 12:47:43 +01:00
cease those screams
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user