|
|
@ -639,7 +639,7 @@ public: |
|
|
|
void Spawn( void ); |
|
|
|
void Spawn( void ); |
|
|
|
|
|
|
|
|
|
|
|
virtual void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ); |
|
|
|
virtual void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ); |
|
|
|
void PlayTrack( void ); |
|
|
|
void EXPORT PlayTrack( void ); |
|
|
|
void Touch( CBaseEntity *pOther ); |
|
|
|
void Touch( CBaseEntity *pOther ); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -657,7 +657,8 @@ void CTriggerCDAudio::Touch( CBaseEntity *pOther ) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PlayTrack(); |
|
|
|
SetThink( &CTriggerCDAudio::PlayTrack ); |
|
|
|
|
|
|
|
pev->nextthink = gpGlobals->time + 0.2f; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CTriggerCDAudio::Spawn( void ) |
|
|
|
void CTriggerCDAudio::Spawn( void ) |
|
|
@ -667,7 +668,8 @@ void CTriggerCDAudio::Spawn( void ) |
|
|
|
|
|
|
|
|
|
|
|
void CTriggerCDAudio::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ) |
|
|
|
void CTriggerCDAudio::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PlayTrack(); |
|
|
|
SetThink( &CTriggerCDAudio::PlayTrack ); |
|
|
|
|
|
|
|
pev->nextthink = gpGlobals->time + 0.2f; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void PlayCDTrack( int iTrack ) |
|
|
|
void PlayCDTrack( int iTrack ) |
|
|
|