forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Пишите **НИЖЕ** заголовков и **ВЫШЕ** комментариев, иначе что то может пойти не так. --> <!-- Вы можете прочитать Contributing.MD, если хотите узнать больше. --> ## Что этот PR делает <!-- Вкратце опишите изменения, которые вносите. --> <!-- Опишите **все** изменения, так как противное может сказаться на рассмотрении этого PR'а! --> <!-- Если вы исправляете Issue, добавьте "Fixes #1234" (где 1234 - номер Issue) где-нибудь в описании PR'а. Это автоматически закроет Issue после принятия PR'а. --> ## Почему это хорошо для игры <!-- Опишите, почему, по вашему, следует добавить эти изменения в игру. --> ## Изображения изменений <!-- Если вы не меняли карту или спрайты, можете опустить эту секцию. Если хотите, можете вставить видео. --> ## Тестирование <!-- Как вы тестировали свой PR, если делали это вовсе? --> ## Changelog :cl: fix: вы совершенно точно можете быть уверены что титры работают /:cl: <!-- Оба :cl:'а должны быть на месте, что-бы чейнджлог работал! Вы можете написать свой ник справа от первого :cl:, если хотите. Иначе будет использован ваш ник на ГитХабе. --> <!-- Вы можете использовать несколько записей с одинаковым префиксом (Они используются только для иконки в игре) и удалить ненужные. Помните, что чейнджлог должен быть понятен обычным игроком. --> <!-- Если чейнджлог не влияет на игроков(например, это рефактор), вы можете исключить всю секцию. --> --------- Co-authored-by: Gaxeer <[email protected]>
- Loading branch information
Showing
7 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#include "_cinematics.dm" | ||
|
||
#include "code/_defines.dm" | ||
#include "code/_cinematics.dm" | ||
#include "code/cinematics_client_proc.dm" | ||
#include "code/cinematics_screen.dm" | ||
#include "code/cinematics_ticker.dm" | ||
#include "code/cinematics/malf_doomsday.dm" | ||
#include "code/cinematics/narsie_summon.dm" | ||
#include "code/cinematics/nuke_cinematics.dm" | ||
#include "code/cinematics/credits.dm" | ||
#include "code/~undefs.dm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define COMSIG_GLOB_CINEMATIC_STOPPED_PLAYING "!cinematic_waiting_to_play" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/datum/cinematic/credits | ||
cleanup_time = 20 SECONDS | ||
is_global = TRUE | ||
|
||
/datum/cinematic/credits/New(watcher, datum/callback/special_callback) | ||
. = ..() | ||
screen = new/obj/screen/cinematic/credits(src) | ||
|
||
/datum/cinematic/credits/start_cinematic(list/watchers) | ||
watching = watchers | ||
if(SEND_GLOBAL_SIGNAL(COMSIG_GLOB_PLAY_CINEMATIC, src) & COMPONENT_GLOB_BLOCK_CINEMATIC) | ||
RegisterSignal(SSdcs, COMSIG_GLOB_CINEMATIC_STOPPED_PLAYING, PROC_REF(queue_gone)) | ||
return | ||
. = ..() | ||
|
||
/datum/cinematic/credits/proc/queue_gone(datum/source, datum/cinematic/other) | ||
SIGNAL_HANDLER | ||
|
||
start_cinematic(src.watching) | ||
|
||
/datum/cinematic/credits/play_cinematic() | ||
play_cinematic_sound(sound(SScredits.title_music)) | ||
SScredits.roll_credits_for_clients(watching) | ||
|
||
special_callback?.Invoke() | ||
|
||
/obj/screen/cinematic/credits | ||
icon = 'icons/mob/screen_gen.dmi' | ||
icon_state = "black" | ||
screen_loc = "WEST,SOUTH to EAST,NORTH" | ||
plane = SPLASHSCREEN_PLANE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#undef COMSIG_GLOB_CINEMATIC_STOPPED_PLAYING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters