nolf2-modernizer icon indicating copy to clipboard operation
nolf2-modernizer copied to clipboard

Weapon animation is affected by framerate

Open haekb opened this issue 4 years ago • 0 comments

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);

haekb avatar Jul 15 '20 20:07 haekb