Difference between revisions of "Fixing NPC blinking"

From Valve Developer Community
Jump to: navigation, search
(Marked for deletion due to being merged into another page.)
(Removed all content in favor of marked for deletion label)
Line 1: Line 1:
{{prod|This article has been merged into [[General SDK Fixes]].}}
{{prod|This article has been merged into [[General SDK Fixes]].}}
== Fixing the blinking bug ==
In source sdk2013 blinking has been broken for a while. Fixing this is as easy as removing a single line of code.
Go to "'''c_baseflex.cpp'''" to the following line
<source lang=cpp>
void C_BaseFlex::SetupWeights( const matrix3x4_t *pBoneToWorld, int nFlexWeightCount, float *pFlexWeights, float *pFlexDelayedWeights )
And remove the following line
<source lang=cpp>
m_iBlink = AddGlobalFlexController( "UH" );
Congratulations! You have successfully fixed npc blinking it was as easy as that

Latest revision as of 16:53, 22 February 2020