mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-08-29 06:56:13 +01:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
/datum/hud/cinematic
|
|
click_check = 0
|
|
|
|
proc/play(name)
|
|
create_screen("bg", "", 'icons/mob/hud_common.dmi', "cinematic_bg", "1, 1 to NORTH, EAST", 98)
|
|
switch (name)
|
|
if ("nuke")
|
|
var/obj/screen/hud/anim = create_screen("cinematic", "", 'icons/effects/station_explosion.dmi', "start_nuke", "1:6, 1:50", 99)
|
|
clients << sound('sound/misc/airraid_loop_short.ogg')
|
|
SPAWN_DBG(3.5 SECONDS)//45)
|
|
anim.icon_state = "explode"
|
|
sleep(10)
|
|
clients << sound('sound/effects/kaboom.ogg')
|
|
sleep(80)
|
|
anim.icon_state = "loss_nuke"
|
|
/*sleep(70)
|
|
del(src)*/
|
|
if ("malf")
|
|
var/obj/screen/hud/anim = create_screen("cinematic", "", 'icons/effects/station_explosion.dmi', "start_malf", "1:6, 1:50", 99)
|
|
SPAWN_DBG(3.5 SECONDS)//45)
|
|
anim.icon_state = "explode"
|
|
sleep(10)
|
|
clients << sound('sound/effects/kaboom.ogg')
|
|
sleep(70)
|
|
anim.icon_state = "loss_malf"
|
|
if ("sadbuddy")
|
|
create_screen("cinematic", "", 'icons/effects/160x160.dmi', "sadbuddy", "CENTER-2,CENTER-2", 99)
|
|
clients << sound('sound/misc/sad_server_death.ogg') |