/**************************************************************************** * Called when the object is first created * TimS March 18 2002 ****************************************************************************/ OnCreate() { VAR tmp; tmp = 0.5; FX_AddStream( THIS, 1.0, // Number of times to tile the detail texture -0.07, // Scroll speed of the base texture -0.1, // Scroll speed of the detail texture -0.0, // Scroll speed of the opacity map "LEVELDATA_TMS_WAKES", // The TMS mesh to use "LEVELDATA_DDS_WAKEFLOW2", // The base texture "LEVELDATA_DDS_WAKEFLOW", // The detail texture "LEVELDATA_DDS_WATER_REF", // The environment map "LEVELDATA_DDS_WAKEOP" // The opacity map // "LEVELDATA_DDS_WATER" // The base texture ); // Pre-cache and set up the stream sound // FX_PrecacheSound( "AUDIO_WAV_STREAM01", 1, 1); // 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); }