nolf2-modernizer
nolf2-modernizer copied to clipboard
Weapon animation is affected by framerate
It's not as pronounced as it is in NOLF 1, but it can get pretty bad on weapons like the shotgun.
I've made some suggested changes by thecanonmaster from the LithFAQ discord, and it works a lot better...still needs some work though. Here's a sample video with it fixed to 0.005f https://streamable.com/kxcfwo
auto fFrametime = g_pGameClientShell->GetFrameTime();
g_pLTClient->CPrint("fFrameTime: %f", fFrametime);
ANIMTRACKERID pMainTracker;
g_pModelLT->GetMainTracker(m_hObject, pMainTracker);
g_pModelLT->SetPlaying(m_hObject, pMainTracker, LTTRUE);
g_pModelLT->UpdateMainTracker(m_hObject, fFrametime);// 0.005f);
g_pModelLT->SetPlaying(m_hObject, pMainTracker, LTFALSE);