本文整理汇总了C++中PrecacheModel函数的典型用法代码示例。如果您正苦于以下问题:C++ PrecacheModel函数的具体用法?C++ PrecacheModel怎么用?C++ PrecacheModel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PrecacheModel函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrecacheModel
void CASW_Path_Utils_NPC::Precache()
{
PrecacheModel( SWARM_NEW_DRONE_MODEL );
}
示例2: Precache
void Precache( void )
{
PrecacheModel ("models/items/boxflares.mdl");
}
示例3: PrecacheModel
//-----------------------------------------------------------------------------
// Purpose: Precache assets used by the entity
//-----------------------------------------------------------------------------
void CTDPHeadcrab::Precache( void )
{
// we ignore all the sounds for now
PrecacheModel( ENTITY_MODEL );
BaseClass::Precache();
}
示例4: Precache
void Precache( void )
{
PrecacheModel ( AMMO_MP5CHAIN_MODEL );
}
示例5: PrecacheModel
void CArmorPiece::Precache(void)
{
PrecacheModel(STRING(GetModelName()));
}
示例6: PrecacheModel
//-----------------------------------------------------------------------------
// Purpose: Precache function for the healthkit
//-----------------------------------------------------------------------------
void CHealthKit::Precache( void )
{
PrecacheModel( GetPowerupModel() );
PrecacheScriptSound( TF_HEALTHKIT_PICKUP_SOUND );
}
示例7: PrecacheModel
//-----------------------------------------------------------------------------
// Purpose:
// Input :
// Output :
//-----------------------------------------------------------------------------
void CNPC_CombineS::Precache()
{
PrecacheModel( "models/combine_soldier.mdl" );
PrecacheModel("models/gibs/combine_soldier_beheaded.mdl");
PrecacheModel("models/gibs/pgib_p3.mdl");
PrecacheModel("models/gibs/pgib_p4.mdl");
//GIBS!
PrecacheModel("models/gibs/soldier_head.mdl");
PrecacheModel("models/gibs/soldier_left_arm.mdl");
PrecacheModel("models/gibs/soldier_right_arm.mdl");
PrecacheModel("models/gibs/soldier_torso.mdl");
PrecacheModel("models/gibs/soldier_pelvis.mdl");
PrecacheModel("models/gibs/soldier_left_leg.mdl");
PrecacheModel("models/gibs/soldier_right_leg.mdl");
PrecacheParticleSystem("headshotspray");
UTIL_PrecacheOther( "item_healthvial" );
UTIL_PrecacheOther( "weapon_frag" );
PrecacheScriptSound("Gore.Headshot");
BaseClass::Precache();
}
示例8: PrecacheModel
void CK98Ammo::Precache(void)
{
PrecacheModel("models/items/w_k98_ammo.mdl");
}
示例9: PrecacheModel
void CRocketMissile::Precache( void )
{
PrecacheModel( "models/weapons/w_missile.mdl" );
PrecacheModel( "models/weapons/w_missile_launch.mdl" );
PrecacheModel( "models/weapons/w_missile_closed.mdl" );
}
示例10: PrecacheModel
void CASW_Target_Dummy::Precache()
{
PrecacheModel( ASW_TARGET_DUMMY_MODEL );
BaseClass::Precache();
}
示例11: PrecacheModel
void CRagdollProp::Precache( void )
{
PrecacheModel( STRING( GetModelName() ) );
BaseClass::Precache();
}
示例12: PrecacheModel
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CHydraImpale::Precache( void )
{
PrecacheModel( "models/props_junk/cardboard_box001a.mdl" );
BaseClass::Precache();
}