本文整理汇总了C++中C_BaseAnimating::SetSolid方法的典型用法代码示例。如果您正苦于以下问题:C++ C_BaseAnimating::SetSolid方法的具体用法?C++ C_BaseAnimating::SetSolid怎么用?C++ C_BaseAnimating::SetSolid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类C_BaseAnimating
的用法示例。
在下文中一共展示了C_BaseAnimating::SetSolid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdatePingEffects
void C_ASW_AOEGrenade_Projectile::UpdatePingEffects( void )
{
if ( m_bSettled && m_pPulseEffect.GetObject() == NULL )
{
m_pPulseEffect = ParticleProp()->Create( GetPingEffectName(), PATTACH_ABSORIGIN_FOLLOW, -1, Vector( 0, 0, 8 ) );
if ( m_pPulseEffect )
{
m_pPulseEffect->SetControlPoint( 1, Vector( m_flRadius, 0, 0 ) );
}
}
if ( ShouldSpawnSphere() && m_bSettled && m_hSphereModel.Get() == NULL )
{
C_BaseAnimating *pEnt = new C_BaseAnimating;
if (!pEnt)
{
Msg("Error, couldn't create new C_BaseAnimating\n");
return;
}
if (!pEnt->InitializeAsClientEntity( "models/items/shield_bubble/shield_bubble.mdl", false ))
//if (!pEnt->InitializeAsClientEntity( "models/props_combine/coreball.mdl", false ))
{
Msg("Error, couldn't InitializeAsClientEntity\n");
pEnt->Release();
return;
}
pEnt->SetParent( this );
pEnt->SetLocalOrigin( Vector( 0, 0, 0 ) );
pEnt->SetLocalAngles( QAngle( 0, 0, 0 ) );
pEnt->SetSolid( SOLID_NONE );
pEnt->SetSkin( GetSphereSkin() );
pEnt->RemoveEFlags( EFL_USE_PARTITION_WHEN_NOT_SOLID );
m_hSphereModel = pEnt;
m_flTimeCreated = gpGlobals->curtime;
}
}