bool VCablePathRenderer::DoInit()
{
  if (!VPathRendererBase::DoInit())
    return false;
  
  return RebuildModel();
}
// ----------------------------------------------------------------------------
bool vHavokCableConstraintChainRenderer::DoInit()
{
  if (!vHavokConstraintChainRendererBase::DoInit())
    return false;
  
  return RebuildModel();
}
Пример #3
0
void CClientPlayer::Reset ( void )
{
    // stats
    for ( unsigned short us = 0 ; us <= NUM_PLAYER_STATS ; us++ )
    {
        if ( us == MAX_HEALTH )
        {
            SetStat ( us, 569.0f );
        }
        else
        {
            SetStat ( us, 0.0f );
        }
    }

    // model
    SetModel ( 0 );

    // clothes        
    GetClothes ()->DefaultClothes ( false );

    // jetpack
    SetHasJetPack ( false );

    // fight-style
    SetFightingStyle ( STYLE_GRAB_KICK );

    // rebuild
    RebuildModel ();

    // Nametag
    SetNametagText ( m_strNick );
    m_bNametagShowing = true;

    // Otherwize default to white
    m_ucNametagColorR = 255;
    m_ucNametagColorG = 255;
    m_ucNametagColorB = 255;
    m_bNametagColorOverridden = false;

    SetAlpha ( 255 );
}
void VCablePathRenderer::OnDataChanged()
{
  VPathRendererBase::OnDataChanged();

  RebuildModel();
}
void VCablePathRenderer::OnUpdate()
{
  if (m_spPathRenderingData != NULL && (m_spPathRenderingData->GetNumLinks() != m_iLastKnownNumLinks))
    RebuildModel();
}
// ----------------------------------------------------------------------------
void vHavokCableConstraintChainRenderer::OnUpdate()
{
  if (m_pConstraintChain && (m_pConstraintChain->GetNumLinks() != m_iLastKnownNumLinks))
    RebuildModel();
}