Skip to content

Support cinematic subtitle#208

Open
C-ColinTH wants to merge 6 commits into
wolfetplayer:mainfrom
C-ColinTH:cinesub
Open

Support cinematic subtitle#208
C-ColinTH wants to merge 6 commits into
wolfetplayer:mainfrom
C-ColinTH:cinesub

Conversation

@C-ColinTH

@C-ColinTH C-ColinTH commented May 6, 2026

Copy link
Copy Markdown
Contributor

Support display subtitles when playing cutscene cine.

Just create a sub extension text file with the same name as the video and put it in the same directory. Then open console:
seta cl_drawcinesubtitles 1
It may provide convenience for various languages localization without edit the videos.

If subtitle text need custom font, modify "gfx/2d/subchars.tga":
subchars.zip

syntax:
{
startTime endTime text sizeScale x0 y0 width [x1 y1]
...
}

an example SUB file wolfintro.sub for wolfintro.webm or wolfintro.roq:

// startTime endTime text sizeScale x0 y0 width [x1 y1]
//     x0 y0: The initial position of subtitle.
//     x1 y1: Optional parameter. The end position of subtitle, if not specify, subtitle is fixed position.
// Position scaling based on 640x480
// The cinematic subtitles text display rectangle position is just similar with 'rect' in ui menu script file.
/*
 ---------------------------
|                           |
| x0         x0 + width     |
|  \            \           |
|  *------------*           |  <- y0
|  |    text    |           |
|  |    text    |           |
|  |    ...     |           |
|                           |
 ---------------------------
            game window
*/

{
70000 74500  "Heinrich, your reign of terror must end!"  0.6  95  430  450

75000 80500  "You fool, you know that I can not be destroyed!"  0.6  95  430  450

105000 108500  "A prison man..."  0.6  95  430  450

125000 131000  "May the faith hold off the coming storm..."  0.6  95  430  450

153000 162000  "Return to castle Wolfenstein Immediately, note Himmler, we found 'him'."  0.6  95  430  450
}

video effect:

bandicam.2026-05-24.16-27-29-600.mp4
bandicam.2026-05-06.21-28-39-471.mp4

C-ColinTH added 5 commits May 6, 2026 21:33
Support display subtitles when playing cutscene cine.
Create a sub extension file with the same name as the video in the same directory.

syntax:
{
startTime endTime text sizeScale x0, y0, width [x1 y1]
...
}

 ---------------------------
|                           |
| x0         x0 + width     |
|  \            \           |
|  *------------*           |  <- y0
|  |    text    |           |
|  |    text    |           |
|  |    ...     |           |
|                           |
 ---------------------------
@C-ColinTH C-ColinTH changed the title cine subtitles Support cinematic subtitle May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant