Moddage / TF2-Gamemode

Team Fortress 2 Gamemode for Garry's Mod
https://steamcommunity.com/sharedfiles/filedetails/?id=1417447538
7 stars 5 forks source link

Lip Sync (Phonemes) #13

Open LeadKiller opened 4 years ago

LeadKiller commented 4 years ago

Team Fortress 2 introduced MP3 compression for voice lines with the Mar 12, 2015 Update, which also removed phoneme expressions from the VCD files and replaced it with script files.

Solutions

Using the original .wav files This works well, but has three issues:

Manually recreate Lip Sync Data This works for any line, but has two issues:

Use AddPhonemeFile Exposing engine->AddPhonemeFile to Lua would allow developers to load phoneme data from scripts. This would allow all lines to effortlessly be up-to-date with Team Fortress 2's lipsync data. Currently the phoneme data for Team Fortress 2 resides within scripts/game_sounds_vo_phonemes.txt. This could work perfectly, but has one issue:

Manually face pose characters for voice lines Reading the scripts/game_sounds_vo_phonemes.txt file through Lua and manually recreating the lip sync system works would function similarly to above, but has four issues:

thebehhbehhman commented 4 years ago

Fixed in Civilian 2

thebehhbehhman commented 4 years ago

SFM .wav files are out of date and needs changing. all though Valve is working on other things, and SFM is probably not going to be updated.

LeadKiller commented 4 years ago

Civilian 2 seems to increase file size and repack voice lines with how it does this, I'm hoping to keep the addon under 30mb and to make sure little to no content from Team Fortress 2 is repacked.

Added a new method, the last two methods may work for this.

thebehhbehhman commented 4 years ago

We've only made a sound pack as a "part 2" addon for the gamemode, to make sure lipsync works properly.