Engine
Class CDThinker

source: c:\runehov\Engine\Classes\CDThinker.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.CDThinker
Direct Known Subclasses:None

class CDThinker
extends Engine.Actor

//============================================================================= // CDThinker. // // This is a simple little class that automatically restarts the CD Audio on a level // // Yeah. It's a hack. We go gold with the Add-on in two days and I just // discovered that CD Audio doesn't loop by default in the game code. //=============================================================================

Function Summary
 
simulated
PreBeginPlay()
     
// RUNE:  CD Audio restart functionality
 
simulated
Timer()



Source Code


00001	//=============================================================================
00002	// CDThinker.
00003	//
00004	// This is a simple little class that automatically restarts the CD Audio on a level
00005	// 
00006	// Yeah.  It's a hack.  We go gold with the Add-on in two days and I just 
00007	// discovered that CD Audio doesn't loop by default in the game code.
00008	//=============================================================================
00009	class CDThinker extends Actor;
00010	
00011	// RUNE:  CD Audio restart functionality
00012	simulated function PreBeginPlay()
00013	{
00014		Super.PreBeginPlay();
00015	
00016		if(Level.CdTrackLength > 0)
00017			SetTimer(Level.CdTrackLength, true);
00018	}
00019	
00020	simulated function Timer()
00021	{
00022		// Restart CD music
00023		ConsoleCommand("CDTRACK " $Level.CdTrack);
00024	}
00025	
00026	defaultproperties
00027	{
00028	     bHidden=True
00029	}

End Source Code