mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
game(hl1): fix SetBoneController
This commit is contained in:
@@ -2743,8 +2743,9 @@ float CBaseAnimating::SetBoneController ( int iController, float flValue )
|
||||
|
||||
float newValue;
|
||||
float retVal = Studio_SetController( pmodel, iController, flValue, newValue );
|
||||
m_flEncodedController.Set( iController, newValue );
|
||||
|
||||
float &val = m_flEncodedController.GetForModify( iController );
|
||||
val = newValue;
|
||||
return retVal;
|
||||
}
|
||||
|
||||
|
||||
@@ -387,7 +387,6 @@ void CNPC_Barnacle::BarnacleThink ( void )
|
||||
//Msg("tounge %f\n", m_flAltitude + m_flTongueAdj );
|
||||
//NDebugOverlay::Box( GetAbsOrigin() - Vector( 0, 0, m_flAltitude ), Vector( -2, -2, -2 ), Vector( 2, 2, 2 ), 255,255,255, 0, 0.1 );
|
||||
|
||||
SetBoneController( 0, 0.f );
|
||||
SetBoneController( 0, -(m_flAltitude + m_flTongueAdj) );
|
||||
StudioFrameAdvance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user