//----------------------------------------------------------------------------- // Purpose: Precache function for the healthkit //----------------------------------------------------------------------------- void CHealthKit::Precache( void ) { PrecacheModel( GetPowerupModel() ); PrecacheScriptSound( TF_HEALTHKIT_PICKUP_SOUND ); PrecacheScriptSound( "OverhealPillRattle.Touch" ); PrecacheScriptSound( "OverhealPillNoRattle.Touch" ); }
//----------------------------------------------------------------------------- // Purpose: Spawn function for the healthkit //----------------------------------------------------------------------------- void CHealthKit::Spawn( void ) { Precache(); SetModel( GetPowerupModel() ); BaseClass::Spawn(); }
//----------------------------------------------------------------------------- // Purpose: Spawn function for the ammopack //----------------------------------------------------------------------------- void CAmmoPack::Spawn( void ) { Precache(); SetModel( GetPowerupModel() ); BaseClass::Spawn(); }
//----------------------------------------------------------------------------- // Purpose: Precache function for the healthkit //----------------------------------------------------------------------------- void CHealthKit::Precache( void ) { PrecacheModel( GetPowerupModel() ); PrecacheScriptSound( TF_HEALTHKIT_PICKUP_SOUND ); }
//----------------------------------------------------------------------------- // Purpose: Precache function for the ammopack //----------------------------------------------------------------------------- void CAmmoPack::Precache( void ) { PrecacheModel( GetPowerupModel() ); PrecacheScriptSound( TF_AMMOPACK_PICKUP_SOUND ); }