当前位置: 首页>>代码示例>>C++>>正文


C++ PrecacheScriptSound函数代码示例

本文整理汇总了C++中PrecacheScriptSound函数的典型用法代码示例。如果您正苦于以下问题:C++ PrecacheScriptSound函数的具体用法?C++ PrecacheScriptSound怎么用?C++ PrecacheScriptSound使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PrecacheScriptSound函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PrecacheModel

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CResourceChunk::Precache( void )
{
	PrecacheModel( sResourceChunkModel );
	PrecacheModel( sProcessedResourceChunkModel );
	PrecacheModel( "sprites/redglow1.vmt" );

	PrecacheScriptSound( "ResourceChunk.Pickup" );

}
开发者ID:Axitonium,项目名称:SourceEngine2007,代码行数:12,代码来源:resource_chunk.cpp

示例2: PrecacheModel

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CFlare::Precache( void )
{
	PrecacheModel("models/weapons/flare.mdl" );

	PrecacheScriptSound( "Weapon_FlareGun.Burn" );

  	// FIXME: needed to precache the fire model.  Shouldn't have to do this.
  	UTIL_PrecacheOther( "_firesmoke" );
}
开发者ID:WorldGamers,项目名称:Mobile-Forces-Source,代码行数:12,代码来源:weapon_flaregun.cpp

示例3: PrecacheModel

void CNPC_Hydra::Precache()
{
	PrecacheModel( "models/Hydra.mdl" );
	UTIL_PrecacheOther( "hydra_impale" );

	PrecacheScriptSound( "NPC_Hydra.ExtendTentacle" );

	BaseClass::Precache();
}
开发者ID:xxauroraxx,项目名称:Source.Python,代码行数:9,代码来源:npc_hydra.cpp

示例4: PropBreakablePrecacheAll

void CPhysicsCannister::Precache( void )
{
	PropBreakablePrecacheAll( GetModelName() );
	if ( m_gasSound != NULL_STRING )
	{
		PrecacheScriptSound( STRING(m_gasSound) );
	}
	BaseClass::Precache();
}
开发者ID:paralin,项目名称:hl2sdk,代码行数:9,代码来源:physics_cannister.cpp

示例5: PrecacheModel

void CFlechette::Precache( void )
{
	PrecacheModel( BOLT_MODEL );
	PrecacheScriptSound("Tranqu.Heal");
	PrecacheModel("sprites/grenade/grenade_laser.vmt");
	PrecacheParticleSystem( "gasgrenade_pink" );
	PrecacheParticleSystem( "gasgrenade_green" );
	PrecacheParticleSystem( "gasgrenade_red" );
}
开发者ID:Orygin,项目名称:BisounoursParty,代码行数:9,代码来源:weapon_tranquilizer.cpp

示例6: PrecacheModel

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CPropAPC::Precache( void )
{
	BaseClass::Precache();

	int i;
	for ( i = 0; i < APC_MAX_CHUNKS; ++i )
	{
		PrecacheModel( s_pChunkModelName[i] );
	}

	for ( i = 0; i < APC_MAX_GIBS; ++i )
	{
		PrecacheModel( s_pGibModelName[i] );
	}

	PrecacheScriptSound( "Weapon_AR2.Single" );
	PrecacheScriptSound( "PropAPC.FireRocket" );
	PrecacheScriptSound( "combine.door_lock" );
}
开发者ID:paralin,项目名称:hl2sdk,代码行数:22,代码来源:vehicle_apc.cpp

示例7: PrecacheModel

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CVehicleMortar::Precache()
{
	PrecacheModel( MORTAR_MODEL );

	PrecacheVGuiScreen( MORTAR_SCREEN_NAME );

	PrecacheScriptSound( "VehicleMortar.FireSound" );

	BaseClass::Precache();
}
开发者ID:Axitonium,项目名称:SourceEngine2007,代码行数:13,代码来源:tf_vehicle_mortar.cpp

示例8: PrecacheModel

//=========================================================
// Precache - precaches all resources this monster needs
//=========================================================
void CNPC_AlienGrunt::Precache()
{
	PrecacheModel("models/agrunt.mdl");

	iAgruntMuzzleFlash = PrecacheModel( "sprites/muz4.vmt" );

	UTIL_PrecacheOther( "hornet" );

	PrecacheScriptSound( "Weapon_Hornetgun.Single" );
	PrecacheScriptSound( "AlienGrunt.LeftFoot" );
	PrecacheScriptSound( "AlienGrunt.RightFoot" );
	PrecacheScriptSound( "AlienGrunt.AttackHit" );
	PrecacheScriptSound( "AlienGrunt.AttackMiss" );
	PrecacheScriptSound( "AlienGrunt.Die" );
	PrecacheScriptSound( "AlienGrunt.Alert" );
	PrecacheScriptSound( "AlienGrunt.Attack" );
	PrecacheScriptSound( "AlienGrunt.Pain" );
	PrecacheScriptSound( "AlienGrunt.Idle" );
}	
开发者ID:hitmen047,项目名称:TF2HLCoop,代码行数:22,代码来源:hl1_npc_agrunt.cpp

示例9: PrecacheModel

void CGrenade_Molotov::Precache( void )
{
	BaseClass::Precache();

	PrecacheModel("models/weapons/w_bb_bottle.mdl");

	UTIL_PrecacheOther("_firesmoke");

	PrecacheScriptSound( "Grenade_Molotov.Detonate" );
}
开发者ID:0xFEEDC0DE64,项目名称:UltraGame,代码行数:10,代码来源:grenade_molotov.cpp

示例10: GetAmmoDef

void CNPC_MiniTurret::Precache()
{
	CNPC_BaseTurret::Precache( );

	m_iAmmoType = GetAmmoDef()->Index("9mmRound");

	PrecacheScriptSound( "Turret.Shoot" );

	PrecacheModel ("models/miniturret.mdl");	
}
开发者ID:hitmen047,项目名称:TF2HLCoop,代码行数:10,代码来源:hl1_npc_turret.cpp

示例11: PrecacheScriptSound

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CWeaponMedigun::Precache()
{
	BaseClass::Precache();
	PrecacheScriptSound( "WeaponMedigun.NoTarget" );
	PrecacheScriptSound( "WeaponMedigun.Healing" );
	PrecacheScriptSound( "WeaponMedigun.Charged" );
	PrecacheParticleSystem( "medicgun_invulnstatus_fullcharge_blue" );
	PrecacheParticleSystem( "medicgun_invulnstatus_fullcharge_red" );
	PrecacheParticleSystem("medicgun_invulnstatus_fullcharge_green");
	PrecacheParticleSystem("medicgun_invulnstatus_fullcharge_yellow");
	PrecacheParticleSystem( "medicgun_beam_red_invun" );
	PrecacheParticleSystem( "medicgun_beam_red" );
	PrecacheParticleSystem( "medicgun_beam_blue_invun" );
	PrecacheParticleSystem( "medicgun_beam_blue" );
	PrecacheParticleSystem("medicgun_beam_green_invun");
	PrecacheParticleSystem("medicgun_beam_green");
	PrecacheParticleSystem("medicgun_beam_yellow_invun");
	PrecacheParticleSystem("medicgun_beam_yellow");
}
开发者ID:Navton,项目名称:TF2Classic,代码行数:22,代码来源:tf_weapon_medigun.cpp

示例12: PrecacheScriptSound

void CWeaponGrenade::Precache( void )
{
    BaseClass::Precache();

    PrecacheScriptSound( "Weapon_Grenade.Throw" );

#ifndef CLIENT_DLL
    UTIL_PrecacheOther( "npc_grenade_frag" );
#endif
}
开发者ID:SCell555,项目名称:bisonours-party-2013,代码行数:10,代码来源:weapon_grenade.cpp

示例13: UTIL_PrecacheOther

//------------------------------------------------------------------------------
// Purpose :
// Input   :
// Output  :
//------------------------------------------------------------------------------
void CFuncTankPulseLaser::Precache(void)
{
	UTIL_PrecacheOther( "grenade_beam" );

	if ( m_sPulseFireSound != NULL_STRING )
	{
		PrecacheScriptSound( STRING(m_sPulseFireSound) );
	}
	BaseClass::Precache();
}
开发者ID:AgentAgrimar,项目名称:source-sdk-trilogy,代码行数:15,代码来源:hl1_func_tank.cpp

示例14: PrecacheEffect

//-----------------------------------------------------------------------------
// Spawn
//-----------------------------------------------------------------------------
void CRagdollBoogie::Precache()
{
	BaseClass::Precache();

	PrecacheEffect( "TeslaHitboxes" );

#ifdef HL2_EPISODIC
	PrecacheScriptSound( "RagdollBoogie.Zap" );
#endif
}
开发者ID:BenLubar,项目名称:SwarmDirector2,代码行数:13,代码来源:RagdollBoogie.cpp

示例15: PrecacheScriptSound

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CTeamControlPoint::Precache( void )
{
	for ( int i = 0; i < m_TeamData.Count(); i++ )
	{
		// Skip over spectator
		if ( i == TEAM_SPECTATOR )
			continue;

		if ( m_TeamData[i].iszCapSound != NULL_STRING )
		{
			PrecacheScriptSound( STRING(m_TeamData[i].iszCapSound) );
		}

		if ( m_TeamData[i].iszModel != NULL_STRING )
		{
			PrecacheModel( STRING(m_TeamData[i].iszModel) );
		}

		if ( m_TeamData[i].iszIcon != NULL_STRING )
		{
			PrecacheMaterial( STRING( m_TeamData[i].iszIcon ) );
			m_TeamData[i].iIcon = GetMaterialIndex( STRING( m_TeamData[i].iszIcon ) );
			Assert( m_TeamData[i].iIcon != 0 );
		}

		if ( !m_TeamData[i].iIcon )
		{
			Warning( "Invalid hud icon material for team %d in control point '%s' ( point index %d )\n", i, GetDebugName(), GetPointIndex() );
		}

		if ( m_TeamData[i].iszOverlay != NULL_STRING )
		{
			PrecacheMaterial( STRING( m_TeamData[i].iszOverlay ) );
			m_TeamData[i].iOverlay = GetMaterialIndex( STRING( m_TeamData[i].iszOverlay ) );
			Assert( m_TeamData[i].iOverlay != 0 );

			if ( !m_TeamData[i].iOverlay )
			{
				Warning( "Invalid hud overlay material for team %d in control point '%s' ( point index %d )\n", i, GetDebugName(), GetPointIndex() );
			}
		}
	}

	PrecacheScriptSound( STRING( m_iszCaptureStartSound ) );
	PrecacheScriptSound( STRING( m_iszCaptureEndSound ) );
	PrecacheScriptSound( STRING( m_iszCaptureInProgress ) );
	PrecacheScriptSound( STRING( m_iszCaptureInterrupted ) );

	if ( m_iszWarnSound != NULL_STRING )
	{
		PrecacheScriptSound( STRING( m_iszWarnSound ) );
	}

#ifdef TF_DLL
	PrecacheScriptSound( "Announcer.ControlPointContested" );
#endif
}
开发者ID:xxauroraxx,项目名称:Source.Python,代码行数:60,代码来源:team_control_point.cpp


注:本文中的PrecacheScriptSound函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。