MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / speak_update

Function speak_update

src/SB/Game/zEntPlayer.cpp:2858–2875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2856 }
2857
2858 static void speak_update(F32 dt)
2859 {
2860 if (player_talk.anim == -1)
2861 {
2862 return;
2863 }
2864
2865 if (player_talk.time < 0.2f || xSndIsPlaying(player_talk.sndid) != 0)
2866 {
2867 player_talk.time += dt;
2868 float jawval = xJaw_EvalData(player_talk.data, player_talk.time);
2869 globals.player.ent.model->Anim->Single->BilinearLerp[0] = jawval;
2870 }
2871 else
2872 {
2873 zEntPlayerSpeakStop();
2874 }
2875 }
2876} // namespace
2877
2878// WIP, not equivalent

Callers

nothing calls this directly

Calls 3

zEntPlayerSpeakStopFunction · 0.85
xSndIsPlayingFunction · 0.70
xJaw_EvalDataFunction · 0.50

Tested by

no test coverage detected