Fixing NPC blinking: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "== 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 <source lang=cpp> void...")
 
m (Fixing double redirect. This action was performed by a bot.)
Tag: Redirect target changed
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Fixing the blinking bug ==
#REDIRECT [[General SDK Snippets & Fixes]]
 
In source sdk2013 blinking has been broken for a while. Fixing this is as easy as removing a single line of code.
 
Go to
<source lang=cpp>
void C_BaseFlex::SetupWeights( const matrix3x4_t *pBoneToWorld, int nFlexWeightCount, float *pFlexWeights, float *pFlexDelayedWeights )
</source>
 
And remove the following line
 
<source lang=cpp>
m_iBlink = AddGlobalFlexController( "UH" );
</source>
 
Congratulations! You have successfully fixed npc blinking it was as easy as that

Latest revision as of 15:06, 21 January 2024