/**************************************************************************** * Called when the object is first created * TimS March 18 2002 ****************************************************************************/ OnCreate() { FX_AddStream( THIS, 2.0, // Number of times to tile the detail texture -0.2, // Scroll speed of the base texture -0.7, // Scroll speed of the detail texture -0.52, // Scroll speed of the opacity map "LEVELDATA_TMS_WATERFALL", // The TMS mesh to use "LEVELDATA_DDS_WATERFALL1", // The base texture "LEVELDATA_DDS_WATERFALL", // The detail texture "LEVELDATA_DDS_WATERFALLREF", // The environment map "LEVELDATA_DDS_WATERFALLOP" // The opacity map // "LEVELDATA_DDS_WATER" // The base texture ); // Pre-cache and set up the stream sound /* FX_PrecacheSound( "AUDIO_WAV_STREAM01", 1, 0); FX_SetSoundDistances("AUDIO_WAV_STREAM01", 100.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); */ }