"start_stacks" { "DLC2_select_music_entry_start" //replaces null.wav { "random_variation_picker" //use for random volume if needed { "operator" "math_random" "execute_once" "true" "input_execute" "1.0" "input_min" "1.0" //low value here "input_max" "6.0" //high value here. "round_to_int" "true" } "get_ctc_music_index_opvar" { "operator" "get_opvar_float" "opvar" "ctc_music_index" } "switch_random_or_selection" { "operator" "math_logic_switch" "input1" "@random_variation_picker.output" "input2" "@get_ctc_music_index_opvar.output" "input_switch" "@get_ctc_music_index_opvar.output_opvar_exists" } "compare_1" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "1.0" } "compare_2" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "2.0" } "compare_3" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "3.0" } "compare_4" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "4.0" } "compare_5" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "5.0" } "compare_6" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "6.0" } "compare_7" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@switch_random_or_selection.output" "input2" "7.0" } "play_variation_1" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_1.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } "play_variation_2" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_2.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } "play_variation_3" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_3.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } "play_variation_4" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_4.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } "play_variation_5" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_5.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } "play_variation_6" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_6.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } "play_variation_7" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@compare_7.output" "input_start" "1" "entry_name" "Default.Null" //Replace with the sound you want to play. } } "p2_editor_player_start" { "limit_blips" { "operator" "sys_stop_entries" "input_max_entries" "99.000000" //A sound will not stop itself from playing. "match_entity" "false" "match_substring" "false" "match_entry" "P2Editor.BlipPlayer00" "stop_oldest" "true" } "play_random_or_not" { "operator" "math_random" "input_min" "0.0" "input_max" "1.0" } "percentage_to_play" { "operator" "math_float" "apply" "less_than_or_equal" "input1" "@play_random_or_not.output" "input2" "0.6" //TEST VARIABLE FOR NOW } "entries_mathing_compare" { "operator" "math_float" "apply" "equals" "input1" "0.0" "input2" "@limit_blips.output_entries_matching" //TEST VARIABLE FOR NOW } "percentage_to_play_min" { "operator" "math_float" "apply" "min" "input1" "@percentage_to_play.output" "input2" "@entries_mathing_compare.output" //TEST VARIABLE FOR NOW } "play_entry" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@percentage_to_play_min.output" "input_start" "1" "entry_name" "P2Editor.RandomBlips" } } "start_default" { "stop_entries" { "operator" "sys_stop_entries" } } "start_test_random" { "random_float" { "operator" "math_random" "input_min" "0.0" "input_max" "1.0" } } "start_test" { // "get_elapsed" // { // "operator" "get_entry_time" // } // "play_entry" // { // "operator" "sys_start_entry" // "input_start" "1" // "entry_name" "xray.beep" // } "stop_entries" { "operator" "sys_stop_entries" } "block_entries" { "operator" "sys_block_entries" "input_active" "1.0" "input_duration" "2.0" "match_substring" "false" "match_entry" "xray.beep" // "match_sound" "npc\dog\dog_idlemode_loop1.wav" "match_channel" "false" "match_entity" "false" } "delay_output" { "operator" "sys_output" "input_float" "0.0" "output" "delay" } } "start_global_bpm_quantize" { "sys_time" { "operator" "get_sys_time" } "bpm" { "operator" "math_float" "apply" "div" "input1" "60" "input2" "120" } "beats" { "operator" "math_float" "apply" "mult" "input1" "@bpm.output" "input2" "1" } "time_mod" { "operator" "math_float" "apply" "mod" "input1" "@sys_time.output_client_time" "input2" "@beats.output" } "negative_delay" { "operator" "math_float" "apply" "mult" "input1" "@time_mod.output" "input2" "-1.0" } "delay_output" { "operator" "sys_output" "input_float" "@negative_delay.output" "output" "delay" } } "start_sync_to_entry" { "elapsed_time" { "operator" "get_entry_time" } "duration_div" { "operator" "math_float" "apply" "div" "input1" "@elapsed_time.output_sound_duration" "input2" "4" } "time_mod" { "operator" "math_float" "apply" "mod" "input1" "@elapsed_time.output_sound_elapsed" "input2" "@duration_div.output" } "div_mult" { "operator" "math_float" "apply" "mult" "input1" "0.0" "input2" "@duration_div.output" } "add_offset" { "operator" "math_float" "apply" "add" "input1" "@time_mod.output" "input2" "@div_mult.output" } "negative_delay" { "operator" "math_float" "apply" "mult" "input1" "@add_offset.output" "input2" "-1.0" } "delay_output" { "operator" "sys_output" "input_float" "@negative_delay.output" "output" "delay" } } "start_delay_sync_to_entry" { "import_stack" "start_sync_to_entry" "negative_delay" { "apply" "sub" "input1" "@duration_div.output" "input2" "@time_mod.output" } } "P2_coop_robot_start" { "stop_footsteps" { "operator" "sys_stop_entries" "input_max_entries" "0.000000" //A sound will not stop itself from playing. "match_entity" "false" "match_substring" "true" } } "P2_portalgun_start" { "stop_gun" { "operator" "sys_stop_entries" "input_max_entries" "0.000000" //A sound will not stop itself from playing. "match_entity" "false" "match_substring" "true" } } "P2_poly_limiting_start" //Generic poly limiter. Override values to make usable. { "limit_sound" { "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" "NONE" } "limit_robot_sounds" { "operator" "sys_stop_entries" "input_max_entries" "23.000000" //A sound will not stop itself from playing. "match_entity" "false" "match_substring" "true" "match_entry" "Robot" } //Console hacks begin here. "sys_get_platform" //should be for X360/PS3, only use PC for testing. { "operator" "sys_platform" //"pc" "true" //IF THIS IS UNCOMMENTED CHANGE IT!!! SERIOUSLY!!! "x360" "true" "ps3" "true" } "limit_robot_sounds_ps3" { "operator" "sys_stop_entries" "input_execute" "@sys_get_platform.output" "input_max_entries" "9.000000" //I hate myself. "match_entity" "false" "match_substring" "true" "match_entry" "Robot" } "ps3_num_voices_compare" { "operator" "math_float" "apply" "greater_than_or_equal" "input1" "@limit_robot_sounds_ps3.output_entries_matching" // This is the percentage chance to play a null "input2" "10.0" //match the max number of played sounds ( = input_max_entries + 1 ) } "block_robot_entries_ps3" //helps with disc I/O: Blocks sound requests of robots once a max number of robots exist { "operator" "sys_block_entries" //"input_execute" "0.0" "input_execute" "@ps3_num_voices_compare.output" "input_active" "1.0" "input_duration" "0.25" //in seconds, you can use "@get_random.output" for a random blocking period "match_substring" "true" "match_entry" "Robot" //The sound entry to use "match_channel" "false" "match_entity" "false" } "limit_sound_ps3" { "operator" "s...
DaddysLittleSlut69