Please or Register to create posts and topics.

Soundscript - speed gel doesn't work

I'm experimenting with soundscripts for my Old Aperture map. I'm not that familiar with scripting, basicly I copy/pasted them from the original scripts and set a few values.
Here it is:

Code: Select all
"music.brits_sp_ftbc03_b1"
{
   "channel"   "CHAN_STATIC"
   "soundlevel"   "SNDLVL_NONE"
   "volume"   "0.65"

   "wave"   "*music/sp_a3_bomb_flings_b1.wav"

   "soundentry_version" "2"
   "operator_stacks"
   {
      "update_stack"
      {
         "import_stack"       "update_music_stereo"

         "volume_fade_in"
         {
            "input_max" "3.0"
         }
         "volume_fade_out"
         {
            "input_max" "3.0"
         }

         "import_stack"       "p2_update_music_play_gel"
         "gel_mixer"
         {
            "mixgroup" "testGelBounce"
         }

         "gel_play_entry"
         {
            "entry_name" "music.brits_sp_ftbc03_z1"
         }
         "gel_stop_entry"
         {
            "match_entry" "music.brits_sp_ftbc03_z1"
         }

         "import_stack"       "p2_update_music_play_speed_gel"
         "speed_velocity_trigger"
         {
            "input2" "220"
         }

         "speed_play_entry"
         {
            "entry_name" "music.brits_sp_ftbc03_c1"
         }
         "speed_stop_entry"
         {
            "match_entry" "music.brits_sp_ftbc03_c1"
         }

      }
      "stop_stack"
      {
         "stop_entry"
         {
            "operator" "sys_stop_entries"
            "input_max_entries" "0.000000" //A sound will not stop itself from playing.
            "match_entity" "false"   
            "match_substring" "true"
            "match_entry" "z2"
         }
      }
   }
}
"music.brits_sp_ftbc03_z1"
{
   "channel"   "CHAN_STATIC"
   "soundlevel"   "SNDLVL_100dB"
   "volume"   "0.75"

   "rndwave"
   {
      "wave"   "*music/sp_a3_bomb_flings_z2.wav"
      "wave"   "*music/sp_a3_bomb_flings_z2b.wav"
      "wave"   "*music/sp_a3_bomb_flings_z2c.wav"
   }

   "soundentry_version" "2"
   "operator_stacks"
   {
      "start_stack"
      {
         "import_stack" "start_sync_to_entry"
            
         "elapsed_time"
         {
            "entry" "music.brits_sp_ftbc03_b1"
         }
         "duration_div"
         {
            "input2" "1"
         }
         "div_mult"
         {
            "input1" "1.0"
         }

         "stop_entry"
         {
            "operator" "sys_stop_entries"
            "input_max_entries" "0.000000" //A sound will not stop itself from playing.
            "match_entity" "false"   
            "match_substring" "true"
            "match_entry" "z1"
         }

      }
      "update_stack"
      {
         "import_stack"       "update_music_stereo"

         "volume_fade_in"
         {
            "input_max" "0.25"
         }
         "volume_fade_out"
         {
            "input_max" "1.0"
         }

      }
   }
}
"music.brits_sp_ftbc03_c1"
{
   "channel"   "CHAN_STATIC"
   "soundlevel"   "SNDLVL_NONE"
   "volume"   "0.4"

   "rndwave"
   {
      "wave"   "*music/sp_a3_speed_ramp_z1.wav"
      "wave"   "*music/sp_a3_speed_ramp_z1b.wav"
      "wave"   "*music/sp_a3_speed_ramp_z1c.wav"
      "wave"   "*music/sp_a3_speed_ramp_z1d.wav"

   }

   "soundentry_version" "2"

   "operator_stacks"
   {
      "start_stack"
      {
         "import_stack" "start_sync_to_entry"
            
         "elapsed_time"
         {
            "entry" "music.brits_sp_ftbc03_b1"
         }
         "duration_div"
         {
            "input2" "1"
         }
         "div_mult"
         {
            "input1" "1.0"
         }
         "stop_entry"
         {
            "operator" "sys_stop_entries"
            "input_max_entries" "0.000000" //A sound will not stop itself from playing.
            "match_entity" "false"   
            "match_substring" "true"
            "match_entry" "c1"
         }
      }
      "update_stack"
      {
         "import_stack"    "update_music_stereo"
         "volume_fade_in"
         {
            "input_max" "0.5"
         }
         "volume_fade_out"
         {
            "input_max" "0.1"
         }

      }
   }
}

The sound is played when I bounce on the blue paint, but the speed gel doesn't work. What's the problem?

Workshop
First Transcendental Building Course: 02 03 (WIP)
(01 needs some rethinking, playable though)