Garry's Mod

Garry's Mod

279 ratings
Simplest Subtitles Framework
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
File Size
Posted
Updated
5.553 KB
Aug 18, 2024 @ 10:23am
Oct 6, 2024 @ 4:50am
4 Change Notes ( view )

Subscribe to download
Simplest Subtitles Framework

In 1 collection by MrSlonik
Simplest Subtitles
14 items
Description
The simplest take on custom subtitles.

Features:
- Uses Half-Life 2's Closed Captions system
- Toggle on/off in Options -> Audio -> Captioning
- Supports both clientside and serverside sounds (like HUD sounds or HL1 NPCs)
- Subtitles can be added to soundscripts (in the "snd" field) and sentences
- Subtitles can be chained (another line shows after one expires, put name in the "chain" field)
- Backwards compatible with all SSF packs

This mod does not provide any subtitles by itself, you might want to install some:
- Half-Life 1 subtitles pack
- HL2 Combine Overwatch subtitles pack
- HL2 Resistance subtitles pack
- Look for more packs in the official collection (which is also shown above the description)
- Or create your own! Here's the template: https://pastebin.com/Yd2pMDf9
64 Comments
Hidden May 26 @ 3:59pm 
Damn, too bad. Alright, thank you
MrSlonik  [author] May 26 @ 12:33pm 
@Hidden There's no way to check if a sound is still playing. The hooks I use only pass the soundscript and sound path, not something I can use to check that.
Jariner May 25 @ 9:32am 
suggestion, could custom subtitles also be shown when using cc_emit? as some source mods do use it.
Hidden May 24 @ 11:24am 
Nice! By the way, I have a suggestion: If the sound that started a subtitle chain is no longer playing, don't play the rest of the chain.
Ragsimier May 24 @ 2:08am 
the crash has been fixed
Hidden May 22 @ 5:25pm 
And another question: I noticed that in HL2 there are some really long subtitled sounds. Last time I tried gui.AddCaption() with text copied out of one of these lines, the game crashed. Does this framework handle that?
Hidden May 22 @ 4:46pm 
Thank you.
Hey, do you know if it's possible at all to use the sentence system with ogg sound files? Or at least the next best thing?
MrSlonik  [author] May 22 @ 4:15pm 
I already do language.GetPhrase for both "text" and "subject" values on pack load. You should be able to just put the localization key without # symbol.
Hidden May 22 @ 3:30pm 
Can I use the localization system to get subtitles in people's languages? Do I add a localization definition (like "#tool.weld.help") or do I use language.GetPhrase()?
Jariner Mar 30 @ 3:41am 
would be pretty nice if you would be able to replace already existing subtitles with custom ones, i've tried it, and it only made the unedited original and the custom text both appear.