/**************************************************************************** * Called when the object is first created * TimS March 18 2002 ****************************************************************************/ OnCreate() { FX_AddStream( THIS, 4.0, // Number of times to tile the detail texture -0.1255, // Scroll speed of the base texture -0.1755, // Scroll speed of the detail texture "LEVELDATA_TMS_LAVA_01", // The TMS mesh to use "LEVELDATA_DDS_A4_MAGMA", // The base texture "LEVELDATA_DDS_A4_MAGMA_ALPHA", // The detail texture "LEVELDATA_DDS_A4_MAGMA_REF", // The environment map "LEVELDATA_DDS_A4_MAGMA_OP" // The opacity map ); // Pre-cache and set up the stream sound /* FX_PrecacheSound( "AUDIO_WAV_STREAM01", 1, 0); FX_SetSoundDistances("AUDIO_WAV_STREAM01", 300.0, 5000.0); FX_PlaySound( THIS, "AUDIO_WAV_STREAM01", 1.0, -1 ); */ } /**************************************************************************** * OnTick() * Called each game tick. Update the Stream properties * PeterM March 25 2002 ****************************************************************************/ OnTick( seconds ) { // Position the stream sound relative to the listener /* FX_PositionStreamSound("AUDIO_WAV_STREAM01", 100.0); */ }