MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SCR_DrawCinematic

Function SCR_DrawCinematic

code/client/cl_cin.cpp:2020–2038  ·  view source on GitHub ↗

Externally-called only, and only if cls.state == CA_CINEMATIC (or CL_IsRunningInGameCinematic() == true now)

Source from the content-addressed store, hash-verified

2018// Externally-called only, and only if cls.state == CA_CINEMATIC (or CL_IsRunningInGameCinematic() == true now)
2019//
2020void SCR_DrawCinematic (void)
2021{
2022 if (CL_InGameCinematicOnStandBy())
2023 {
2024 PlayCinematic(sInGameCinematicStandingBy,NULL,qtrue);
2025 }
2026 else if( qbTextCrawlFixed && stopCinematicCallCount > 1)
2027 {
2028 PlayCinematic(sTextCrawlFixedCinematic, NULL, qtrue);
2029 }
2030
2031 if (CL_handle >= 0 && CL_handle < MAX_VIDEO_HANDLES) {
2032 CIN_DrawCinematic(CL_handle);
2033 if (cinTable[CL_handle].hCRAWLTEXT && (cls.realtime - CL_iPlaybackStartTime >= TC_DELAY))
2034 {
2035 CIN_AddTextCrawl();
2036 }
2037 }
2038}
2039
2040void SCR_RunCinematic (void)
2041{

Callers 1

SCR_DrawScreenFieldFunction · 0.70

Calls 4

PlayCinematicFunction · 0.85
CIN_AddTextCrawlFunction · 0.85
CIN_DrawCinematicFunction · 0.70

Tested by

no test coverage detected