Facepunch / garrysmod-issues

Garry's Mod issue tracker
137 stars 56 forks source link

TF2 Phoneme Data Support #3948

Closed thebehhbehhman closed 4 years ago

thebehhbehhman commented 4 years ago

Details

When a voice sound file plays on a tf2 model/player the lip sync does not work.

Steps to reproduce

Try to replace the npc's model with a tf2 player model, let the npc talk.

Jvs34 commented 4 years ago

I believe you have to use this function manually to make them work, I remember _Kilburn using this for the TF2 gamemode.

You might have to do something like entity:SetupPhonemeMappings( "heavy/phonemes" ).

thebehhbehhman commented 4 years ago

Alright. i'll try that.

thebehhbehhman commented 4 years ago

I have tried it, and it does not work. Lip-sync for tf2 playermodels don't work well..

Jvs34 commented 4 years ago

I investigated it, the correct paths are "player/heavy/phonemes/phonemes", however it seems like the tf2 voicelines don't contain phoneme data anymore, so the mouth movement on tf2 models will only work if you play hl2 sounds or if you use tf2 vcd scenes.

thebehhbehhman commented 4 years ago

I've tried the phoneme thing with lua and tried it with HL2 voice lines. the lip sync works. however the TF2 voicelines's phoneme data don't work for Garry's Mod since their file type is MP3 and hl2's file type is WAV.

robotboy655 commented 4 years ago

As per @Jvs34's post above, the TF2 sound files do not contain any phoneme data, there's nothing here that can be fixed.

thebehhbehhman commented 4 years ago

oof

thebehhbehhman commented 4 years ago

i can try adding phoneme data to the files.