Exemplo n.º 1
0
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
bool CTFViewModel::GetAttachment(int number, Vector &origin, QAngle &angles)
{
    if ( GetViewModelType() == VMTYPE_TF2 )
    {
        C_ViewmodelAttachmentModel *pEnt = m_viewmodelAddon.Get();
        if (pEnt)
            return pEnt->GetAttachment(number, origin, angles);
    }

    return BaseClass::GetAttachment(number, origin, angles);
}
Exemplo n.º 2
0
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
bool CTFViewModel::GetAttachment(int number, matrix3x4_t &matrix)
{
    if ( GetViewModelType() == VMTYPE_TF2 )
    {
        C_ViewmodelAttachmentModel *pEnt = m_viewmodelAddon.Get();
        if (pEnt)
            return pEnt->GetAttachment(number, matrix);
    }

    return BaseClass::GetAttachment(number, matrix);
}