Sound operator stacks.txt/Counter-Strike: Global Offensive: Difference between revisions
(Created this page as reference and to be able to link csgo operator stacks.) |
(Added links via regexp to operators and import_stacks.) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:<code>csgo\scripts\sound_operator_stacks.txt</code>}} | {{DISPLAYTITLE:<code>csgo\scripts\sound_operator_stacks.txt</code>}} | ||
The following is the content of the file as seen in {{csgo|4}}, when the [[VPK]] that it is found in was last modified on 2023-11-07. | The following is the content of the file {{path|csgo\scripts\sound_operator_stacks|txt}} as seen in {{csgo|4}}, when the [[VPK]] that it is found in was last modified on 2023-11-07. | ||
The syntax of the file has been simplified for this page, omitting some indentation. | The syntax of the file has been simplified for this page, omitting some indentation. | ||
The | The purpose of this page is to have a reference to the predefined operator stacks, to be able to navigate between them and/or the operator documentation, or even to copy-paste (parts of) these stacks without having to download the game and look up the file. The sections should make it easy to link to a specific one. | ||
All occurrences of <code>"operator" "<sound_operator>"</code> and <code>"import_stack" "<operator_stack>"</code> link to the appropriate target. | |||
{{tip|Wiki editors: Use the templates {{tl2|operator stack|<name>|csgo}} and {{tl2|sound operator|<name>}} to link to operator stacks and sound operators.}} | |||
__TOC__ | __TOC__ | ||
| Line 16: | Line 19: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
"duration_div" | "duration_div" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "div" | "apply" "div" | ||
"input1" "@elapsed_time.output_sound_duration" | "input1" "@elapsed_time.output_sound_duration" | ||
| Line 27: | Line 30: | ||
"time_mod" | "time_mod" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mod" | "apply" "mod" | ||
"input1" "@elapsed_time.output_sound_elapsed" | "input1" "@elapsed_time.output_sound_elapsed" | ||
| Line 34: | Line 37: | ||
"div_mult" | "div_mult" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "0.0" | "input1" "0.0" | ||
| Line 41: | Line 44: | ||
"add_offset" | "add_offset" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input1" "@time_mod.output" | "input1" "@time_mod.output" | ||
| Line 48: | Line 51: | ||
"negative_delay" | "negative_delay" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@add_offset.output" | "input1" "@add_offset.output" | ||
| Line 55: | Line 58: | ||
"delay_output" | "delay_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@negative_delay.output" | "input_float" "@negative_delay.output" | ||
"output" "delay" | "output" "delay" | ||
| Line 64: | Line 67: | ||
"get_opvar" | "get_opvar" | ||
{ | { | ||
"operator" "get_opvar_float" | "operator" "{{sound operator|get_opvar_float}}" | ||
"opvar" "spectateMusicDelay" | "opvar" "spectateMusicDelay" | ||
} | } | ||
"max_spectate_time" | "max_spectate_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input1" "-1.0" | "input1" "-1.0" | ||
| Line 76: | Line 79: | ||
"max_spectate_time_on" | "max_spectate_time_on" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@max_spectate_time.output" | "input1" "@max_spectate_time.output" | ||
| Line 83: | Line 86: | ||
"max_spectate_time_over" | "max_spectate_time_over" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@get_opvar.output" | "input1" "@get_opvar.output" | ||
| Line 90: | Line 93: | ||
"max_spectate_time_and" | "max_spectate_time_and" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "min" | "apply" "min" | ||
"input1" "@max_spectate_time_on.output" | "input1" "@max_spectate_time_on.output" | ||
| Line 97: | Line 100: | ||
"block_start_this" | "block_start_this" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@max_spectate_time_and.output" | "input_float" "@max_spectate_time_and.output" | ||
"output" "block_start" | "output" "block_start" | ||
| Line 103: | Line 106: | ||
"***PRINT_block_start" | "***PRINT_block_start" | ||
{ | { | ||
"operator" "util_print_float" | "operator" "{{sound operator|util_print_float}}" | ||
// "input_execute" "@max_spectate_time_and.output" | // "input_execute" "@max_spectate_time_and.output" | ||
"input_execute" "0" | "input_execute" "0" | ||
| Line 110: | Line 113: | ||
"time_mod" | "time_mod" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input1" "@get_opvar.output" | "input1" "@get_opvar.output" | ||
| Line 117: | Line 120: | ||
"negative_delay" | "negative_delay" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@time_mod.output" | "input1" "@time_mod.output" | ||
| Line 124: | Line 127: | ||
"delay_output" | "delay_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@negative_delay.output" | "input_float" "@negative_delay.output" | ||
"output" "delay" | "output" "delay" | ||
| Line 130: | Line 133: | ||
"set_opvar" | "set_opvar" | ||
{ | { | ||
"operator" "set_opvar_float" | "operator" "{{sound operator|set_opvar_float}}" | ||
"opvar" "spectateMusicDelay" | "opvar" "spectateMusicDelay" | ||
"input" "0.0" | "input" "0.0" | ||
| Line 142: | Line 145: | ||
"play_distant_version_1" | "play_distant_version_1" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 151: | Line 154: | ||
"limit_gunfire" | "limit_gunfire" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "2.000000" //A sound will not stop itself from playing. | "input_max_entries" "2.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 163: | Line 166: | ||
"limit_entry" | "limit_entry" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "1.000000" //A sound will not stop itself from playing. | "input_max_entries" "1.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 176: | Line 179: | ||
"limit_entry" | "limit_entry" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "1.000000" //A sound will not stop itself from playing. | "input_max_entries" "1.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 189: | Line 192: | ||
"limit_entry" | "limit_entry" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "7.000000" //A sound will not stop itself from playing. | "input_max_entries" "7.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 202: | Line 205: | ||
"limit_entry" | "limit_entry" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "5.000000" //A sound will not stop itself from playing. | "input_max_entries" "5.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 215: | Line 218: | ||
"limit_entry" | "limit_entry" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "3.000000" //A sound will not stop itself from playing. | "input_max_entries" "3.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 228: | Line 231: | ||
"limit_entry" | "limit_entry" | ||
{ | { | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"input_max_entries" "0.000000" //A sound will not stop itself from playing. | "input_max_entries" "0.000000" //A sound will not stop itself from playing. | ||
"match_entity" "true" | "match_entity" "true" | ||
| Line 241: | Line 244: | ||
"random_variation_picker" //use for random volume if needed | "random_variation_picker" //use for random volume if needed | ||
{ | { | ||
"operator" "math_random" | "operator" "{{sound operator|math_random}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 251: | Line 254: | ||
"compare_1" | "compare_1" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 260: | Line 263: | ||
"compare_2" | "compare_2" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 269: | Line 272: | ||
"compare_3" | "compare_3" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 278: | Line 281: | ||
"play_variation_1" | "play_variation_1" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_1.output" | "input_execute" "@compare_1.output" | ||
| Line 287: | Line 290: | ||
"play_variation_2" | "play_variation_2" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_2.output" | "input_execute" "@compare_2.output" | ||
| Line 296: | Line 299: | ||
"play_variation_3" | "play_variation_3" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_3.output" | "input_execute" "@compare_3.output" | ||
| Line 304: | Line 307: | ||
"set_start_music_selection" | "set_start_music_selection" | ||
{ | { | ||
"operator" "set_opvar_float" | "operator" "{{sound operator|set_opvar_float}}" | ||
"opvar" "start_music_selection" | "opvar" "start_music_selection" | ||
"input" "@random_variation_picker.output" | "input" "@random_variation_picker.output" | ||
| Line 317: | Line 320: | ||
{ | { | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
"operator" "get_sys_time" | "operator" "{{sound operator|get_sys_time}}" | ||
} | } | ||
"mod_time" | "mod_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mod" | "apply" "mod" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 329: | Line 332: | ||
"add_time" | "add_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 337: | Line 340: | ||
"round_mod_time" | "round_mod_time" | ||
{ | { | ||
"operator" "math_func1" | "operator" "{{sound operator|math_func1}}" | ||
"function" "round" | "function" "round" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 345: | Line 348: | ||
"compare_1" | "compare_1" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 354: | Line 357: | ||
"compare_2" | "compare_2" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 363: | Line 366: | ||
"compare_3" | "compare_3" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 372: | Line 375: | ||
"play_variation_1" | "play_variation_1" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_1.output" | "input_execute" "@compare_1.output" | ||
| Line 381: | Line 384: | ||
"play_variation_2" | "play_variation_2" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_2.output" | "input_execute" "@compare_2.output" | ||
| Line 390: | Line 393: | ||
"play_variation_3" | "play_variation_3" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_3.output" | "input_execute" "@compare_3.output" | ||
| Line 403: | Line 406: | ||
"get_start_music_selection" | "get_start_music_selection" | ||
{ | { | ||
"operator" "get_opvar_float" | "operator" "{{sound operator|get_opvar_float}}" | ||
"opvar" "start_music_selection" | "opvar" "start_music_selection" | ||
} | } | ||
"random_variation_picker" //use for random volume if needed | "random_variation_picker" //use for random volume if needed | ||
{ | { | ||
"operator" "math_random" | "operator" "{{sound operator|math_random}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 417: | Line 420: | ||
"variation_switch" | "variation_switch" | ||
{ | { | ||
"operator" "math_logic_switch" | "operator" "{{sound operator|math_logic_switch}}" | ||
"input_switch" "0" | "input_switch" "0" | ||
"input1" "@random_variation_picker.output" | "input1" "@random_variation_picker.output" | ||
| Line 425: | Line 428: | ||
"compare_1" | "compare_1" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 434: | Line 437: | ||
"compare_2" | "compare_2" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 443: | Line 446: | ||
"compare_3" | "compare_3" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "equals" | "apply" "equals" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 452: | Line 455: | ||
"play_variation_1" | "play_variation_1" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_1.output" | "input_execute" "@compare_1.output" | ||
| Line 461: | Line 464: | ||
"play_variation_2" | "play_variation_2" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_2.output" | "input_execute" "@compare_2.output" | ||
| Line 470: | Line 473: | ||
"play_variation_3" | "play_variation_3" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@compare_3.output" | "input_execute" "@compare_3.output" | ||
| Line 483: | Line 486: | ||
"snd_musicvolume_convar" | "snd_musicvolume_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_musicvolume_fixed" | "convar" "snd_musicvolume_fixed" | ||
} | } | ||
"snd_musicvolume_off" | "snd_musicvolume_off" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "less_than" | "apply" "less_than" | ||
"input1" "@snd_musicvolume_convar.output" | "input1" "@snd_musicvolume_convar.output" | ||
| Line 495: | Line 498: | ||
"play_classic_deathcam" | "play_classic_deathcam" | ||
{ | { | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@snd_musicvolume_off.output" | "input_execute" "@snd_musicvolume_off.output" | ||
| Line 505: | Line 508: | ||
{ | { | ||
"input_execute" "@snd_musicvolume_off.output" | "input_execute" "@snd_musicvolume_off.output" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "block_start" | "output" "block_start" | ||
| Line 516: | Line 519: | ||
"this_entry_syncpoints" | "this_entry_syncpoints" | ||
{ | { | ||
"operator" "get_track_syncpoint" | "operator" "{{sound operator|get_track_syncpoint}}" | ||
"syncpoint_list" "syncpoints_1" | "syncpoint_list" "syncpoints_1" | ||
"this_entry_syncpoints" "true" | "this_entry_syncpoints" "true" | ||
| Line 522: | Line 525: | ||
"sync_track_syncpoints" | "sync_track_syncpoints" | ||
{ | { | ||
"operator" "get_track_syncpoint" | "operator" "{{sound operator|get_track_syncpoint}}" | ||
"syncpoint_list" "syncpoints_1" | "syncpoint_list" "syncpoints_1" | ||
"input_min_time_to_next_sync" "@this_entry_syncpoints.output_first_syncpoint" | "input_min_time_to_next_sync" "@this_entry_syncpoints.output_first_syncpoint" | ||
| Line 532: | Line 535: | ||
"delay_output" | "delay_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@sync_track_syncpoints.output_time_to_next_syncpoint" | "input_float" "@sync_track_syncpoints.output_time_to_next_syncpoint" | ||
"output" "delay" | "output" "delay" | ||
| Line 556: | Line 559: | ||
"input_execute" "1" | "input_execute" "1" | ||
"execute_once" "false" | "execute_once" "false" | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"stop_this_entry" "true" | "stop_this_entry" "true" | ||
} | } | ||
| Line 562: | Line 565: | ||
"upav_elapsed_time" | "upav_elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
"upav_min_time" | "upav_min_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@upav_elapsed_time.output_entry_elapsed" | "input1" "@upav_elapsed_time.output_entry_elapsed" | ||
| Line 573: | Line 576: | ||
"upav_view_info" | "upav_view_info" | ||
{ | { | ||
"operator" "game_view_info" | "operator" "{{sound operator|game_view_info}}" | ||
// "source" "entity" | // "source" "entity" | ||
// "source" "emitter" | // "source" "emitter" | ||
| Line 579: | Line 582: | ||
"upav_source_info" | "upav_source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
"source" "entity" | "source" "entity" | ||
// "source" "emitter" | // "source" "emitter" | ||
| Line 587: | Line 590: | ||
{ | { | ||
"input_execute" "1" | "input_execute" "1" | ||
"operator" "game_entity_info" | "operator" "{{sound operator|game_entity_info}}" | ||
"input_entity_index" "@upav_source_info.output_entity_index" | "input_entity_index" "@upav_source_info.output_entity_index" | ||
} | } | ||
"upav_delta_trigger" | "upav_delta_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
// "input1" "@upav_get_entity_info.output_velocity" | // "input1" "@upav_get_entity_info.output_velocity" | ||
| Line 600: | Line 603: | ||
"upav_delta_and_time" | "upav_delta_and_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "min" | "apply" "min" | ||
"input1" "@upav_delta_trigger.output" | "input1" "@upav_delta_trigger.output" | ||
| Line 607: | Line 610: | ||
"upav_test_stopped" | "upav_test_stopped" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "less_than" | "apply" "less_than" | ||
"input1" "@upav_elapsed_time.output_stop_elapsed" | "input1" "@upav_elapsed_time.output_stop_elapsed" | ||
| Line 615: | Line 618: | ||
// "PRINT_upav_delta_trigger" | // "PRINT_upav_delta_trigger" | ||
// { | // { | ||
// "operator" "util_print_float" | // "operator" "{{sound operator|util_print_float}}" | ||
// "input" "@upav_delta_trigger.output" | // "input" "@upav_delta_trigger.output" | ||
// } | // } | ||
// "PRINT_upav_min_time" | // "PRINT_upav_min_time" | ||
// { | // { | ||
// "operator" "util_print_float" | // "operator" "{{sound operator|util_print_float}}" | ||
// "input" "@upav_min_time.output" | // "input" "@upav_min_time.output" | ||
// } | // } | ||
// "PRINT_upav_delta_and_time" | // "PRINT_upav_delta_and_time" | ||
// { | // { | ||
// "operator" "util_print_float" | // "operator" "{{sound operator|util_print_float}}" | ||
// "input" "@upav_delta_and_time.output" | // "input" "@upav_delta_and_time.output" | ||
// } | // } | ||
| Line 634: | Line 637: | ||
"input_execute" "@upav_delta_and_time.output" | "input_execute" "@upav_delta_and_time.output" | ||
"execute_once" "true" | "execute_once" "true" | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"input_start" "@upav_delta_and_time.output" | "input_start" "@upav_delta_and_time.output" | ||
"entry_name" "Default.Null" | "entry_name" "Default.Null" | ||
| Line 642: | Line 645: | ||
"input_execute" "@upav_delta_and_time.output" | "input_execute" "@upav_delta_and_time.output" | ||
"execute_once" "true" | "execute_once" "true" | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"stop_this_entry" "true" | "stop_this_entry" "true" | ||
} | } | ||
| Line 651: | Line 654: | ||
"usat_elapsed_time" | "usat_elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
"usat_stop_time" | "usat_stop_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@usat_elapsed_time.output_sound_elapsed" | "input1" "@usat_elapsed_time.output_sound_elapsed" | ||
| Line 665: | Line 668: | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@usat_stop_time.output" | "input_execute" "@usat_stop_time.output" | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"stop_this_entry" "true" | "stop_this_entry" "true" | ||
} | } | ||
| Line 673: | Line 676: | ||
"usat_elapsed_time" | "usat_elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
"is_halftime_opvar" | "is_halftime_opvar" | ||
{ | { | ||
"operator" "get_opvar_float" | "operator" "{{sound operator|get_opvar_float}}" | ||
"opvar" "csgo_ishalftime" | "opvar" "csgo_ishalftime" | ||
} | } | ||
"usat_stop_time" | "usat_stop_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@usat_elapsed_time.output_sound_elapsed" | "input1" "@usat_elapsed_time.output_sound_elapsed" | ||
| Line 689: | Line 692: | ||
"is_halftime_and" | "is_halftime_and" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "min" | "apply" "min" | ||
"input1" "@is_halftime_opvar.output" | "input1" "@is_halftime_opvar.output" | ||
| Line 699: | Line 702: | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "@is_halftime_and.output" | "input_execute" "@is_halftime_and.output" | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"stop_this_entry" "true" | "stop_this_entry" "true" | ||
} | } | ||
| Line 706: | Line 709: | ||
"input_execute" "@is_halftime_and.output" | "input_execute" "@is_halftime_and.output" | ||
"execute_once" "true" | "execute_once" "true" | ||
"operator" "sys_start_entry" | "operator" "{{sound operator|sys_start_entry}}" | ||
"input_start" "1" | "input_start" "1" | ||
"entry_name" "Default.Null" | "entry_name" "Default.Null" | ||
| Line 713: | Line 716: | ||
{ | { | ||
"input_execute" "@is_halftime_and.output" | "input_execute" "@is_halftime_and.output" | ||
"operator" "set_opvar_float" | "operator" "{{sound operator|set_opvar_float}}" | ||
"opvar" "csgo_ishalftime" | "opvar" "csgo_ishalftime" | ||
"input" "0.0" | "input" "0.0" | ||
| Line 729: | Line 732: | ||
{ | { | ||
"input_execute" "0.0" | "input_execute" "0.0" | ||
"operator" "get_opvar_float" | "operator" "{{sound operator|get_opvar_float}}" | ||
"opvar" "csgo_roundstart_time" | "opvar" "csgo_roundstart_time" | ||
} | } | ||
| Line 735: | Line 738: | ||
{ | { | ||
"input_execute" "0.0" | "input_execute" "0.0" | ||
"operator" "get_sys_time" | "operator" "{{sound operator|get_sys_time}}" | ||
} | } | ||
"elapsed_roundtime" | "elapsed_roundtime" | ||
{ | { | ||
"input_execute" "0.0" | "input_execute" "0.0" | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "sub" | "apply" "sub" | ||
"input1" "@host_time.output_client_time" | "input1" "@host_time.output_client_time" | ||
| Line 747: | Line 750: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
// "source" "entity" | // "source" "entity" | ||
"source" "emitter" | "source" "emitter" | ||
| Line 757: | Line 760: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
"mixgroup" "Music" | "mixgroup" "Music" | ||
} | } | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
// "snd_musicvolume_opvar" | // "snd_musicvolume_opvar" | ||
// { | // { | ||
// "operator" "get_opvar_float" | // "operator" "{{sound operator|get_opvar_float}}" | ||
// "opvar" "csgo_music_volume" | // "opvar" "csgo_music_volume" | ||
// } | // } | ||
"snd_musicvolume_convar" | "snd_musicvolume_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_musicvolume_fixed" | "convar" "snd_musicvolume_fixed" | ||
} | } | ||
// "snd_musicvolume_switch" | // "snd_musicvolume_switch" | ||
// { | // { | ||
// "operator" "math_logic_switch" | // "operator" "{{sound operator|math_logic_switch}}" | ||
// "input_switch" "@snd_musicvolume_opvar.output_opvar_exists" | // "input_switch" "@snd_musicvolume_opvar.output_opvar_exists" | ||
// "input1" "@snd_musicvolume_convar.output" | // "input1" "@snd_musicvolume_convar.output" | ||
| Line 784: | Line 787: | ||
// "snd_cuevolume_opvar" | // "snd_cuevolume_opvar" | ||
// { | // { | ||
// "operator" "get_opvar_float" | // "operator" "{{sound operator|get_opvar_float}}" | ||
// "opvar" "csgo_music_volume" | // "opvar" "csgo_music_volume" | ||
// } | // } | ||
"snd_cuevolume_convar" | "snd_cuevolume_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_musicvolume_fixed" | "convar" "snd_musicvolume_fixed" | ||
} | } | ||
// "snd_cuevolume_switch" | // "snd_cuevolume_switch" | ||
// { | // { | ||
// "operator" "math_logic_switch" | // "operator" "{{sound operator|math_logic_switch}}" | ||
// "input_switch" "@snd_cuevolume_opvar.output_opvar_exists" | // "input_switch" "@snd_cuevolume_opvar.output_opvar_exists" | ||
// "input1" "@snd_cuevolume_convar.output" | // "input1" "@snd_cuevolume_convar.output" | ||
| Line 801: | Line 804: | ||
// "snd_musicvolume_max" | // "snd_musicvolume_max" | ||
// { | // { | ||
// "operator" "math_float" | // "operator" "{{sound operator|math_float}}" | ||
// "apply" "max" | // "apply" "max" | ||
// "input1" "@snd_musicvolume_switch.output" | // "input1" "@snd_musicvolume_switch.output" | ||
| Line 808: | Line 811: | ||
"dashboard" | "dashboard" | ||
{ | { | ||
"operator" "get_dashboard" | "operator" "{{sound operator|get_dashboard}}" | ||
} | } | ||
// "opvar_total" | // "opvar_total" | ||
// { | // { | ||
// "operator" "math_float" | // "operator" "{{sound operator|math_float}}" | ||
// "apply" "mult" | // "apply" "mult" | ||
// "input1" "@snd_musicvolume_max.output" | // "input1" "@snd_musicvolume_max.output" | ||
| Line 819: | Line 822: | ||
"music_total" | "music_total" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@snd_musicvolume_convar.output" | "input1" "@snd_musicvolume_convar.output" | ||
| Line 826: | Line 829: | ||
"convar_total" | "convar_total" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@music_total.output" | "input1" "@music_total.output" | ||
| Line 833: | Line 836: | ||
"dashboard_total" | "dashboard_total" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@convar_total.output" | "input1" "@convar_total.output" | ||
| Line 840: | Line 843: | ||
"volume_fade_in" | "volume_fade_in" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_sound_elapsed" | "input" "@elapsed_time.output_sound_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 851: | Line 854: | ||
{ | { | ||
"input_execute" "1" | "input_execute" "1" | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_sound_elapsed" | "input" "@elapsed_time.output_sound_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 861: | Line 864: | ||
"volume_lfo_time_scale" | "volume_lfo_time_scale" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@elapsed_time.output_sound_elapsed" | "input1" "@elapsed_time.output_sound_elapsed" | ||
| Line 868: | Line 871: | ||
"volume_lfo" | "volume_lfo" | ||
{ | { | ||
"operator" "math_func1" | "operator" "{{sound operator|math_func1}}" | ||
"function" "cos" | "function" "cos" | ||
"normalize_trig" "true" | "normalize_trig" "true" | ||
| Line 875: | Line 878: | ||
"volume_lfo_scale" | "volume_lfo_scale" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "invert_scale" | "apply" "invert_scale" | ||
"input1" "@volume_lfo.output" | "input1" "@volume_lfo.output" | ||
| Line 883: | Line 886: | ||
"volume_fade_out" | "volume_fade_out" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_stop_elapsed" | "input" "@elapsed_time.output_stop_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 893: | Line 896: | ||
"volume_invert_fadeout" | "volume_invert_fadeout" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "sub" | "apply" "sub" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 900: | Line 903: | ||
"volume_apply_fade_in" | "volume_apply_fade_in" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_fade_in.output" | "input1" "@volume_fade_in.output" | ||
| Line 907: | Line 910: | ||
"volume_apply_fade_initial" | "volume_apply_fade_initial" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_fade_initial.output" | "input1" "@volume_fade_initial.output" | ||
| Line 914: | Line 917: | ||
"volume_apply_lfo" | "volume_apply_lfo" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_apply_fade_initial.output" | "input1" "@volume_apply_fade_initial.output" | ||
| Line 921: | Line 924: | ||
"volume_apply_fade_out" | "volume_apply_fade_out" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_apply_lfo.output" | "input1" "@volume_apply_lfo.output" | ||
| Line 928: | Line 931: | ||
"volume_apply_mixer" | "volume_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_volume" | "input1" "@mixer.output_volume" | ||
| Line 935: | Line 938: | ||
"volume_apply_adjust" | "volume_apply_adjust" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 942: | Line 945: | ||
"speaker_volume" | "speaker_volume" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 950: | Line 953: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"left_front" "1.0" | "left_front" "1.0" | ||
| Line 964: | Line 967: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 970: | Line 973: | ||
"get_selection_mixlayer_opvar" | "get_selection_mixlayer_opvar" | ||
{ | { | ||
"operator" "get_opvar_float" | "operator" "{{sound operator|get_opvar_float}}" | ||
"opvar" "selection_mixlayer" | "opvar" "selection_mixlayer" | ||
} | } | ||
| Line 977: | Line 980: | ||
"hold_mixlayer_time_calc" | "hold_mixlayer_time_calc" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@elapsed_time.output_sound_duration" | "input1" "@elapsed_time.output_sound_duration" | ||
| Line 984: | Line 987: | ||
"hold_mixlayer_time_calc2" | "hold_mixlayer_time_calc2" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@hold_mixlayer_time_calc.output" | "input1" "@hold_mixlayer_time_calc.output" | ||
| Line 992: | Line 995: | ||
"output_mixlayer_trigger" | "output_mixlayer_trigger" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@hold_mixlayer_time_calc2.output" | "input_float" "@hold_mixlayer_time_calc2.output" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 998: | Line 1,001: | ||
"stoptime_elapsed_trigger" | "stoptime_elapsed_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@volume_invert_fadeout.output" | "input1" "@volume_invert_fadeout.output" | ||
| Line 1,005: | Line 1,008: | ||
"stop_hold_output" | "stop_hold_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "stop_hold" | "output" "stop_hold" | ||
"input_float" "@stoptime_elapsed_trigger.output" | "input_float" "@stoptime_elapsed_trigger.output" | ||
| Line 1,012: | Line 1,015: | ||
"block_entry_time_calc" | "block_entry_time_calc" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input1" "0.5" | "input1" "0.5" | ||
| Line 1,020: | Line 1,023: | ||
"block_entries" | "block_entries" | ||
{ | { | ||
"operator" "sys_block_entries" | "operator" "{{sound operator|sys_block_entries}}" | ||
"input_active" "0.0" | "input_active" "0.0" | ||
"input_duration" "@block_entry_time_calc.output" //in seconds, you can use "@get_random.output" for a random blocking period | "input_duration" "@block_entry_time_calc.output" //in seconds, you can use "@get_random.output" for a random blocking period | ||
| Line 1,033: | Line 1,036: | ||
=== CS_update_music_gungame_startround === | === CS_update_music_gungame_startround === | ||
"import_stack" "CS_update_music_stereo" | "import_stack" "[[#CS_update_music_stereo|''CS_update_music_stereo'']]" | ||
"volume_fade_initial" | "volume_fade_initial" | ||
{ | { | ||
| Line 1,053: | Line 1,056: | ||
"update_track" | "update_track" | ||
{ | { | ||
"operator" "track_update" | "operator" "{{sound operator|track_update}}" | ||
} | } | ||
"import_stack" "update_stop_at_time" | "import_stack" "[[#update_stop_at_time|''update_stop_at_time'']]" | ||
"usat_stop_time" | "usat_stop_time" | ||
{ | { | ||
| Line 1,071: | Line 1,074: | ||
"save_restore_output" | "save_restore_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_float" "1.0" | "input_float" "1.0" | ||
| Line 1,078: | Line 1,081: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
"mixgroup" "All" | "mixgroup" "All" | ||
} | } | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"volume_apply_mixer" | "volume_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_volume" | "input1" "@mixer.output_volume" | ||
| Line 1,095: | Line 1,098: | ||
"speaker_volume" | "speaker_volume" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "1" | "input1" "1" | ||
| Line 1,103: | Line 1,106: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"left_front" "1.0" | "left_front" "1.0" | ||
| Line 1,117: | Line 1,120: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 1,124: | Line 1,127: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 1,134: | Line 1,137: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
| Line 1,141: | Line 1,144: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
// "source" "entity" | // "source" "entity" | ||
"source" "emitter" | "source" "emitter" | ||
| Line 1,149: | Line 1,152: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,157: | Line 1,160: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
// "mixgroup" "All" | // "mixgroup" "All" | ||
} | } | ||
| Line 1,164: | Line 1,167: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,170: | Line 1,173: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 1,183: | Line 1,186: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 1,195: | Line 1,198: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff" | "operator" "{{sound operator|calc_falloff}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 1,201: | Line 1,204: | ||
"volume_fade_out" | "volume_fade_out" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_stop_elapsed" | "input" "@elapsed_time.output_stop_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 1,213: | Line 1,216: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 1,233: | Line 1,236: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 1,241: | Line 1,244: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 1,250: | Line 1,253: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 1,256: | Line 1,259: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 1,263: | Line 1,266: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 1,269: | Line 1,272: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 1,276: | Line 1,279: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 1,287: | Line 1,290: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 1,297: | Line 1,300: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 1,305: | Line 1,308: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 1,320: | Line 1,323: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 1,326: | Line 1,329: | ||
"stoptime_elapsed_trigger" | "stoptime_elapsed_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@volume_fade_out.output" | "input1" "@volume_fade_out.output" | ||
| Line 1,333: | Line 1,336: | ||
"stop_hold_output" | "stop_hold_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "stop_hold" | "output" "stop_hold" | ||
"input_float" "@stoptime_elapsed_trigger.output" | "input_float" "@stoptime_elapsed_trigger.output" | ||
| Line 1,345: | Line 1,348: | ||
"volume_sound_falloff_multiplier" | "volume_sound_falloff_multiplier" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "weapon_sound_falloff_multiplier" | "convar" "weapon_sound_falloff_multiplier" | ||
} | } | ||
| Line 1,353: | Line 1,356: | ||
"volume_xfade_start_dist" | "volume_xfade_start_dist" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_sound_falloff_multiplier.output" | "input1" "@volume_sound_falloff_multiplier.output" | ||
| Line 1,360: | Line 1,363: | ||
"volume_xfade_end_dist" | "volume_xfade_end_dist" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_sound_falloff_multiplier.output" | "input1" "@volume_sound_falloff_multiplier.output" | ||
| Line 1,367: | Line 1,370: | ||
"volume_falloff_min" | "volume_falloff_min" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_sound_falloff_multiplier.output" | "input1" "@volume_sound_falloff_multiplier.output" | ||
| Line 1,374: | Line 1,377: | ||
"volume_falloff_max" | "volume_falloff_max" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@volume_sound_falloff_multiplier.output" | "input1" "@volume_sound_falloff_multiplier.output" | ||
| Line 1,384: | Line 1,387: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
// "source" "entity" | // "source" "entity" | ||
"source" "emitter" | "source" "emitter" | ||
| Line 1,392: | Line 1,395: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,400: | Line 1,403: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
"mixgroup" "AllWeapons" | "mixgroup" "AllWeapons" | ||
} | } | ||
| Line 1,407: | Line 1,410: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,413: | Line 1,416: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 1,426: | Line 1,429: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 1,438: | Line 1,441: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff_curve" | "operator" "{{sound operator|calc_falloff_curve}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
//"input_level" "@level_apply_mixer.output" | //"input_level" "@level_apply_mixer.output" | ||
| Line 1,451: | Line 1,454: | ||
"volume_distance_xfade" | "volume_distance_xfade" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@source_distance.output" | "input" "@source_distance.output" | ||
"input_min" "@volume_xfade_start_dist.output" | "input_min" "@volume_xfade_start_dist.output" | ||
| Line 1,461: | Line 1,464: | ||
"volume_xfade_exponent" | "volume_xfade_exponent" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "pow" | "apply" "pow" | ||
"input1" "@volume_distance_xfade.output" | "input1" "@volume_distance_xfade.output" | ||
| Line 1,469: | Line 1,472: | ||
"volume_invert_distance_xfade" | "volume_invert_distance_xfade" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "sub" | "apply" "sub" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 1,478: | Line 1,481: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 1,498: | Line 1,501: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 1,506: | Line 1,509: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 1,515: | Line 1,518: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 1,521: | Line 1,524: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 1,528: | Line 1,531: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 1,534: | Line 1,537: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 1,541: | Line 1,544: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 1,552: | Line 1,555: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 1,563: | Line 1,566: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 1,571: | Line 1,574: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 1,586: | Line 1,589: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 1,598: | Line 1,601: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
"source" "entity" | "source" "entity" | ||
//"source" "emitter" | //"source" "emitter" | ||
| Line 1,606: | Line 1,609: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,614: | Line 1,617: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
"mixgroup" "Physics" | "mixgroup" "Physics" | ||
} | } | ||
| Line 1,621: | Line 1,624: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,627: | Line 1,630: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 1,640: | Line 1,643: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 1,652: | Line 1,655: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff_curve" | "operator" "{{sound operator|calc_falloff_curve}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_min" "120.0" | "input_min" "120.0" | ||
| Line 1,662: | Line 1,665: | ||
"distance_shutdown" | "distance_shutdown" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "less_than" | "apply" "less_than" | ||
"input1" "@source_distance.output" | "input1" "@source_distance.output" | ||
| Line 1,673: | Line 1,676: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 1,693: | Line 1,696: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 1,701: | Line 1,704: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 1,710: | Line 1,713: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 1,716: | Line 1,719: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 1,723: | Line 1,726: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 1,729: | Line 1,732: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 1,736: | Line 1,739: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 1,747: | Line 1,750: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 1,758: | Line 1,761: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 1,766: | Line 1,769: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 1,781: | Line 1,784: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 1,794: | Line 1,797: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
// "source" "entity" | // "source" "entity" | ||
"source" "emitter" | "source" "emitter" | ||
| Line 1,802: | Line 1,805: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,810: | Line 1,813: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
"mixgroup" "BulletImpacts" | "mixgroup" "BulletImpacts" | ||
} | } | ||
| Line 1,817: | Line 1,820: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 1,823: | Line 1,826: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 1,836: | Line 1,839: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 1,848: | Line 1,851: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff_curve" | "operator" "{{sound operator|calc_falloff_curve}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_min" "120.0" | "input_min" "120.0" | ||
| Line 1,858: | Line 1,861: | ||
"distance_shutdown" | "distance_shutdown" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "less_than" | "apply" "less_than" | ||
"input1" "@source_distance.output" | "input1" "@source_distance.output" | ||
| Line 1,869: | Line 1,872: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 1,889: | Line 1,892: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 1,897: | Line 1,900: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 1,906: | Line 1,909: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 1,912: | Line 1,915: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 1,919: | Line 1,922: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 1,925: | Line 1,928: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 1,932: | Line 1,935: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 1,943: | Line 1,946: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 1,954: | Line 1,957: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 1,962: | Line 1,965: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 1,977: | Line 1,980: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 1,988: | Line 1,991: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
| Line 1,995: | Line 1,998: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
"source" "entity" | "source" "entity" | ||
} | } | ||
| Line 2,002: | Line 2,005: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 2,010: | Line 2,013: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
// "mixgroup" "All" | // "mixgroup" "All" | ||
} | } | ||
| Line 2,017: | Line 2,020: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
"input_scalar" "1.0" | "input_scalar" "1.0" | ||
| Line 2,024: | Line 2,027: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 2,037: | Line 2,040: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 2,047: | Line 2,050: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff_curve" | "operator" "{{sound operator|calc_falloff_curve}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_min" "120.0" | "input_min" "120.0" | ||
| Line 2,056: | Line 2,059: | ||
"volume_fade_out" | "volume_fade_out" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_stop_elapsed" | "input" "@elapsed_time.output_stop_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 2,067: | Line 2,070: | ||
"random_volume" //use for random volume if needed | "random_volume" //use for random volume if needed | ||
{ | { | ||
"operator" "math_random" | "operator" "{{sound operator|math_random}}" | ||
"execute_once" "true" | "execute_once" "true" | ||
"input_execute" "1.0" | "input_execute" "1.0" | ||
| Line 2,078: | Line 2,081: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "0.8" | "input1" "0.8" | ||
| Line 2,098: | Line 2,101: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 2,106: | Line 2,109: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 2,115: | Line 2,118: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 2,121: | Line 2,124: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 2,128: | Line 2,131: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 2,134: | Line 2,137: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 2,141: | Line 2,144: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 2,152: | Line 2,155: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 2,162: | Line 2,165: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 2,170: | Line 2,173: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 2,185: | Line 2,188: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 2,191: | Line 2,194: | ||
"stoptime_elapsed_trigger" | "stoptime_elapsed_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@volume_fade_out.output" | "input1" "@volume_fade_out.output" | ||
| Line 2,198: | Line 2,201: | ||
"stop_hold_output" | "stop_hold_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "stop_hold" | "output" "stop_hold" | ||
"input_float" "@stoptime_elapsed_trigger.output" | "input_float" "@stoptime_elapsed_trigger.output" | ||
| Line 2,209: | Line 2,212: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
| Line 2,216: | Line 2,219: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
"source" "entity" | "source" "entity" | ||
} | } | ||
| Line 2,223: | Line 2,226: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 2,231: | Line 2,234: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
// "mixgroup" "All" | // "mixgroup" "All" | ||
} | } | ||
| Line 2,238: | Line 2,241: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
"input_scalar" "1.0" | "input_scalar" "1.0" | ||
| Line 2,245: | Line 2,248: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 2,258: | Line 2,261: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 2,268: | Line 2,271: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff_curve" | "operator" "{{sound operator|calc_falloff_curve}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_min" "120.0" | "input_min" "120.0" | ||
| Line 2,277: | Line 2,280: | ||
"volume_fade_out" | "volume_fade_out" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_stop_elapsed" | "input" "@elapsed_time.output_stop_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 2,289: | Line 2,292: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 2,309: | Line 2,312: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 2,317: | Line 2,320: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 2,326: | Line 2,329: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 2,332: | Line 2,335: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 2,339: | Line 2,342: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 2,345: | Line 2,348: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 2,352: | Line 2,355: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 2,363: | Line 2,366: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 2,373: | Line 2,376: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 2,381: | Line 2,384: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 2,396: | Line 2,399: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 2,402: | Line 2,405: | ||
"stoptime_elapsed_trigger" | "stoptime_elapsed_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@volume_fade_out.output" | "input1" "@volume_fade_out.output" | ||
| Line 2,409: | Line 2,412: | ||
"stop_hold_output" | "stop_hold_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "stop_hold" | "output" "stop_hold" | ||
"input_float" "@stoptime_elapsed_trigger.output" | "input_float" "@stoptime_elapsed_trigger.output" | ||
| Line 2,422: | Line 2,425: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
| Line 2,429: | Line 2,432: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
"source" "entity" | "source" "entity" | ||
} | } | ||
| Line 2,436: | Line 2,439: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
} | } | ||
| Line 2,444: | Line 2,447: | ||
"phonon_xfade_start_dist" | "phonon_xfade_start_dist" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input1" "0.0" | "input1" "0.0" | ||
| Line 2,451: | Line 2,454: | ||
"phonon_xfade_end_dist" | "phonon_xfade_end_dist" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "add" | "apply" "add" | ||
"input1" "0.0" | "input1" "0.0" | ||
| Line 2,458: | Line 2,461: | ||
"phonon_distance_xfade" | "phonon_distance_xfade" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@source_distance.output" | "input" "@source_distance.output" | ||
"input_min" "@phonon_xfade_start_dist.output" | "input_min" "@phonon_xfade_start_dist.output" | ||
| Line 2,469: | Line 2,472: | ||
"phonon_output" | "phonon_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@phonon_distance_xfade.output" | "input_float" "@phonon_distance_xfade.output" | ||
"output" "phonon_xfade" | "output" "phonon_xfade" | ||
| Line 2,478: | Line 2,481: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
// "mixgroup" "All" | // "mixgroup" "All" | ||
} | } | ||
| Line 2,485: | Line 2,488: | ||
"occlusion" | "occlusion" | ||
{ | { | ||
"operator" "calc_occlusion" | "operator" "{{sound operator|calc_occlusion}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
"input_scalar" "1.0" | "input_scalar" "1.0" | ||
| Line 2,492: | Line 2,495: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 2,505: | Line 2,508: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 2,515: | Line 2,518: | ||
"volume_falloff" | "volume_falloff" | ||
{ | { | ||
"operator" "calc_falloff_curve" | "operator" "{{sound operator|calc_falloff_curve}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_min" "400.0" | "input_min" "400.0" | ||
| Line 2,524: | Line 2,527: | ||
"volume_fade_out" | "volume_fade_out" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_stop_elapsed" | "input" "@elapsed_time.output_stop_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 2,536: | Line 2,539: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 2,556: | Line 2,559: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 2,564: | Line 2,567: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 2,573: | Line 2,576: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 2,579: | Line 2,582: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 2,586: | Line 2,589: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 2,592: | Line 2,595: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 2,599: | Line 2,602: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 2,610: | Line 2,613: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 2,620: | Line 2,623: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 2,628: | Line 2,631: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 2,643: | Line 2,646: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 2,649: | Line 2,652: | ||
"stoptime_elapsed_trigger" | "stoptime_elapsed_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@volume_fade_out.output" | "input1" "@volume_fade_out.output" | ||
| Line 2,656: | Line 2,659: | ||
"stop_hold_output" | "stop_hold_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "stop_hold" | "output" "stop_hold" | ||
"input_float" "@stoptime_elapsed_trigger.output" | "input_float" "@stoptime_elapsed_trigger.output" | ||
| Line 2,670: | Line 2,673: | ||
"source_info" | "source_info" | ||
{ | { | ||
"operator" "get_source_info" | "operator" "{{sound operator|get_source_info}}" | ||
// "source" "entity" | // "source" "entity" | ||
"source" "emitter" | "source" "emitter" | ||
| Line 2,678: | Line 2,681: | ||
{ | { | ||
"input_execute" "1" | "input_execute" "1" | ||
"operator" "game_entity_info" | "operator" "{{sound operator|game_entity_info}}" | ||
"input_entity_index" "@source_info.output_entity_index" | "input_entity_index" "@source_info.output_entity_index" | ||
} | } | ||
| Line 2,685: | Line 2,688: | ||
"elapsed_time" | "elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
| Line 2,691: | Line 2,694: | ||
"source_distance" | "source_distance" | ||
{ | { | ||
"operator" "calc_source_distance" | "operator" "{{sound operator|calc_source_distance}}" | ||
"input_position" "@source_info.output_position" | "input_position" "@source_info.output_position" | ||
// "in2d" "1.0" | // "in2d" "1.0" | ||
| Line 2,701: | Line 2,704: | ||
"mixer" | "mixer" | ||
{ | { | ||
"operator" "get_soundmixer" | "operator" "{{sound operator|get_soundmixer}}" | ||
"mixgroup" "All" | "mixgroup" "All" | ||
} | } | ||
| Line 2,708: | Line 2,711: | ||
{ | { | ||
"execute_once" "1" | "execute_once" "1" | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "1" | "input_float" "1" | ||
"output" "mixlayer_trigger" | "output" "mixlayer_trigger" | ||
| Line 2,716: | Line 2,719: | ||
// "occlusion" | // "occlusion" | ||
// { | // { | ||
// "operator" "calc_occlusion" | // "operator" "{{sound operator|calc_occlusion}}" | ||
// "input_position" "@source_info.output_position" | // "input_position" "@source_info.output_position" | ||
// } | // } | ||
| Line 2,723: | Line 2,726: | ||
"snd_gain_convar" | "snd_gain_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_gain" | "convar" "snd_gain" | ||
} | } | ||
"snd_op_test_convar" | "snd_op_test_convar" | ||
{ | { | ||
"operator" "get_convar" | "operator" "{{sound operator|get_convar}}" | ||
"convar" "snd_op_test_convar" | "convar" "snd_op_test_convar" | ||
} | } | ||
| Line 2,737: | Line 2,740: | ||
"level_apply_mixer" | "level_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_level" | "input1" "@mixer.output_level" | ||
| Line 2,751: | Line 2,754: | ||
"volume_falloff_linear" | "volume_falloff_linear" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@source_distance.output" | "input" "@source_distance.output" | ||
"input_min" "30.0" | "input_min" "30.0" | ||
| Line 2,762: | Line 2,765: | ||
"volume_fade_in" | "volume_fade_in" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_entry_elapsed" | "input" "@elapsed_time.output_entry_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 2,772: | Line 2,775: | ||
"volume_fade_out" | "volume_fade_out" | ||
{ | { | ||
"operator" "math_remap_float" | "operator" "{{sound operator|math_remap_float}}" | ||
"input" "@elapsed_time.output_stop_elapsed" | "input" "@elapsed_time.output_stop_elapsed" | ||
"input_min" "0.0" | "input_min" "0.0" | ||
| Line 2,783: | Line 2,786: | ||
"volume_accumulate" | "volume_accumulate" | ||
{ | { | ||
"operator" "math_float_accumulate12" | "operator" "{{sound operator|math_float_accumulate12}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@source_info.output_volume" | "input1" "@source_info.output_volume" | ||
| Line 2,803: | Line 2,806: | ||
"stoptime_elapsed_trigger" | "stoptime_elapsed_trigger" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@volume_fade_out.output" | "input1" "@volume_fade_out.output" | ||
| Line 2,810: | Line 2,813: | ||
"stop_hold_output" | "stop_hold_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "stop_hold" | "output" "stop_hold" | ||
"input_float" "@stoptime_elapsed_trigger.output" | "input_float" "@stoptime_elapsed_trigger.output" | ||
| Line 2,820: | Line 2,823: | ||
"pitch_output" | "pitch_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"output" "pitch" | "output" "pitch" | ||
"input_float" "@source_info.output_pitch" | "input_float" "@source_info.output_pitch" | ||
| Line 2,829: | Line 2,832: | ||
"dsp_emitter" | "dsp_emitter" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "set" | "apply" "set" | ||
"input1" "1.0" | "input1" "1.0" | ||
| Line 2,835: | Line 2,838: | ||
"dsp_apply_mixer" | "dsp_apply_mixer" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@mixer.output_dsp" | "input1" "@mixer.output_dsp" | ||
| Line 2,842: | Line 2,845: | ||
"dsp_distantDSP" | "dsp_distantDSP" | ||
{ | { | ||
"operator" "calc_distant_dsp" | "operator" "{{sound operator|calc_distant_dsp}}" | ||
"input_distance" "@source_distance.output" | "input_distance" "@source_distance.output" | ||
"input_level" "@level_apply_mixer.output" | "input_level" "@level_apply_mixer.output" | ||
| Line 2,848: | Line 2,851: | ||
"dsp_apply_distant" | "dsp_apply_distant" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@dsp_distantDSP.output" | "input1" "@dsp_distantDSP.output" | ||
| Line 2,855: | Line 2,858: | ||
"dsp_output" | "dsp_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_float" "@dsp_apply_distant.output" | "input_float" "@dsp_apply_distant.output" | ||
"output" "dsp" | "output" "dsp" | ||
| Line 2,866: | Line 2,869: | ||
"speakers_spatialize" | "speakers_spatialize" | ||
{ | { | ||
"operator" "calc_spatialize_speakers" | "operator" "{{sound operator|calc_spatialize_speakers}}" | ||
"input_radius_min" "23" | "input_radius_min" "23" | ||
"input_radius_max" "24" | "input_radius_max" "24" | ||
| Line 2,877: | Line 2,880: | ||
"speakers_apply_volume" | "speakers_apply_volume" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
"input1" "@speakers_spatialize.output" | "input1" "@speakers_spatialize.output" | ||
| Line 2,885: | Line 2,888: | ||
"speakers_limit" | "speakers_limit" | ||
{ | { | ||
"operator" | "operator" "{{sound operator|math_speakers}}" | ||
"apply" "mult" | "apply" "mult" | ||
| Line 2,899: | Line 2,902: | ||
"speakers_output" | "speakers_output" | ||
{ | { | ||
"operator" "sys_output" | "operator" "{{sound operator|sys_output}}" | ||
"input_speakers" "@speakers_limit.output" | "input_speakers" "@speakers_limit.output" | ||
"output" "speakers" | "output" "speakers" | ||
| Line 2,909: | Line 2,912: | ||
"usats_this_entry_syncpoints" | "usats_this_entry_syncpoints" | ||
{ | { | ||
"operator" "get_track_syncpoint" | "operator" "{{sound operator|get_track_syncpoint}}" | ||
"syncpoint_list" "syncpoints_1" | "syncpoint_list" "syncpoints_1" | ||
"this_entry_syncpoints" "true" | "this_entry_syncpoints" "true" | ||
| Line 2,916: | Line 2,919: | ||
"usats_elapsed_time" | "usats_elapsed_time" | ||
{ | { | ||
"operator" "get_entry_time" | "operator" "{{sound operator|get_entry_time}}" | ||
} | } | ||
"usats_stop_time" | "usats_stop_time" | ||
{ | { | ||
"operator" "math_float" | "operator" "{{sound operator|math_float}}" | ||
"apply" "greater_than" | "apply" "greater_than" | ||
"input1" "@usats_elapsed_time.output_sound_elapsed" | "input1" "@usats_elapsed_time.output_sound_elapsed" | ||
| Line 2,929: | Line 2,932: | ||
{ | { | ||
"input_execute" "@usats_stop_time.output" | "input_execute" "@usats_stop_time.output" | ||
"operator" "sys_stop_entries" | "operator" "{{sound operator|sys_stop_entries}}" | ||
"stop_this_entry" "false" | "stop_this_entry" "false" | ||
"input_max_entries" "0.000000" //A sound will not stop itself from playing. | "input_max_entries" "0.000000" //A sound will not stop itself from playing. | ||
Latest revision as of 21:49, 30 November 2025
The following is the content of the file ![]()
csgo\scripts\sound_operator_stacks.txt as seen in
Counter-Strike: Global Offensive, when the VPK that it is found in was last modified on 2023-11-07.
The syntax of the file has been simplified for this page, omitting some indentation.
The purpose of this page is to have a reference to the predefined operator stacks, to be able to navigate between them and/or the operator documentation, or even to copy-paste (parts of) these stacks without having to download the game and look up the file. The sections should make it easy to link to a specific one.
All occurrences of "operator" "<sound_operator>" and "import_stack" "<operator_stack>" link to the appropriate target.
start_stacks
start_sync_to_entry
"elapsed_time" { "operator" "get_entry_time" } "duration_div" { "operator" "math_float" "apply" "div" "input1" "@elapsed_time.output_sound_duration" "input2" "1" } "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" }
CS_start_sync_to_spectate
"get_opvar" { "operator" "get_opvar_float" "opvar" "spectateMusicDelay" } "max_spectate_time" { "operator" "math_float" "apply" "add" "input1" "-1.0" "input2" "0.0" } "max_spectate_time_on" { "operator" "math_float" "apply" "greater_than" "input1" "@max_spectate_time.output" "input2" "0.0" } "max_spectate_time_over" { "operator" "math_float" "apply" "greater_than" "input1" "@get_opvar.output" "input2" "@max_spectate_time.output" } "max_spectate_time_and" { "operator" "math_float" "apply" "min" "input1" "@max_spectate_time_on.output" "input2" "@max_spectate_time_over.output" } "block_start_this" { "operator" "sys_output" "input_float" "@max_spectate_time_and.output" "output" "block_start" } "***PRINT_block_start" { "operator" "util_print_float" // "input_execute" "@max_spectate_time_and.output" "input_execute" "0" }
"time_mod" { "operator" "math_float" "apply" "add" "input1" "@get_opvar.output" "input2" "0" } "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" } "set_opvar" { "operator" "set_opvar_float" "opvar" "spectateMusicDelay" "input" "0.0" }
CS_distance_weapon_start
//replaces null.wav
"play_distant_version_1"
{
"operator" "sys_start_entry"
"execute_once" "true"
"input_execute" "1.0"
"input_start" "1"
"entry_name" "Default.Null" //Replace with the sound you want to play.
}
"limit_gunfire" { "operator" "sys_stop_entries" "input_max_entries" "2.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_limit_start
//replaces null.wav
"limit_entry" { "operator" "sys_stop_entries" "input_max_entries" "1.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_limit_foley_start
//replaces null.wav
"limit_entry" { "operator" "sys_stop_entries" "input_max_entries" "1.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_limit_physics_start
//replaces null.wav
"limit_entry" { "operator" "sys_stop_entries" "input_max_entries" "7.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_limit_bullet_impact
//replaces null.wav
"limit_entry" { "operator" "sys_stop_entries" "input_max_entries" "5.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_limit_footsteps_start
//replaces null.wav
"limit_entry" { "operator" "sys_stop_entries" "input_max_entries" "3.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_limit_suit_start
//replaces null.wav
"limit_entry" { "operator" "sys_stop_entries" "input_max_entries" "0.000000" //A sound will not stop itself from playing. "match_entity" "true" "match_substring" "false" "match_this_entry" "true" }
CS_random_music_entry_start_2
//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" "3.0" //high value here. "round_to_int" "true" }
"compare_1" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@random_variation_picker.output" "input2" "1.0" }
"compare_2" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@random_variation_picker.output" "input2" "2.0" }
"compare_3" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@random_variation_picker.output" "input2" "3.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. } "set_start_music_selection" { "operator" "set_opvar_float" "opvar" "start_music_selection" "input" "@random_variation_picker.output" }
CS_timed_random_music_entry_start
//replaces null.wav
"host_time" { "input_execute" "1.0" "operator" "get_sys_time" } "mod_time" { "operator" "math_float" "apply" "mod" "input_execute" "1.0" "input1" "@host_time.output_host_time" "input2" "1.0" } "add_time" { "operator" "math_float" "apply" "add" "input_execute" "1.0" "input1" "@mod_time.output" "input2" "0.5" } "round_mod_time" { "operator" "math_func1" "function" "round" "input_execute" "1.0" "input1" "@add_time.output" }
"compare_1" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@round_mod_time.output" "input2" "1.0" }
"compare_2" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@round_mod_time.output" "input2" "2.0" }
"compare_3" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@round_mod_time.output" "input2" "3.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. }
CS_random_music_entry_start_action
//replaces null.wav
"get_start_music_selection" { "operator" "get_opvar_float" "opvar" "start_music_selection" } "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" "3.0" //high value here. "round_to_int" "true" } "variation_switch" { "operator" "math_logic_switch" "input_switch" "0" "input1" "@random_variation_picker.output" "input2" "@get_start_music_selection.output" }
"compare_1" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@variation_switch.output" "input2" "1.0" }
"compare_2" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@variation_switch.output" "input2" "2.0" }
"compare_3" { "operator" "math_float" "apply" "equals" "input_execute" "1.0" "input1" "@variation_switch.output" "input2" "3.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. }
CS_test_music_volume_deathcam_switch
"snd_musicvolume_convar" { "operator" "get_convar" "convar" "snd_musicvolume_fixed" } "snd_musicvolume_off" { "operator" "math_float" "apply" "less_than" "input1" "@snd_musicvolume_convar.output" "input2" "0.1" } "play_classic_deathcam" { "operator" "sys_start_entry" "execute_once" "true" "input_execute" "@snd_musicvolume_off.output" "input_start" "1" "entry_name" "Player.FreezeCam" } // don't play this "block_start" { "input_execute" "@snd_musicvolume_off.output" "operator" "sys_output" "input_float" "1" "output" "block_start" }
start_delay_to_track_sync_point
// the start sync point for the file we are syncing to "this_entry_syncpoints" { "operator" "get_track_syncpoint" "syncpoint_list" "syncpoints_1" "this_entry_syncpoints" "true" } "sync_track_syncpoints" { "operator" "get_track_syncpoint" "syncpoint_list" "syncpoints_1" "input_min_time_to_next_sync" "@this_entry_syncpoints.output_first_syncpoint" "input_max_time_to_next_sync" "1000" "match_entry" "DOTAMusic.BattleMusic" }
// output our resulting delay value "delay_output" { "operator" "sys_output" "input_float" "@sync_track_syncpoints.output_time_to_next_syncpoint" "output" "delay" }
//////////////////////////////////////////////////////////////////////////////////////////// // // update stacks // ////////////////////////////////////////////////////////////////////////////////////////////
update_stacks
update_play_at_velocity
// temporary disabling "upav_stop_TEMP" { "input_execute" "1" "execute_once" "false" "operator" "sys_stop_entries" "stop_this_entry" "true" }
"upav_elapsed_time" { "operator" "get_entry_time" } "upav_min_time" { "operator" "math_float" "apply" "greater_than" "input1" "@upav_elapsed_time.output_entry_elapsed" "input2" "0.2" } "upav_view_info" { "operator" "game_view_info" // "source" "entity" // "source" "emitter" } "upav_source_info" { "operator" "get_source_info" "source" "entity" // "source" "emitter" }
"upav_get_entity_info" { "input_execute" "1" "operator" "game_entity_info" "input_entity_index" "@upav_source_info.output_entity_index" } "upav_delta_trigger" { "operator" "math_float" "apply" "greater_than" // "input1" "@upav_get_entity_info.output_velocity" "input1" "@upav_view_info.output_velocity" "input2" "0.1" } "upav_delta_and_time" { "operator" "math_float" "apply" "min" "input1" "@upav_delta_trigger.output" "input2" "@upav_min_time.output" } "upav_test_stopped" { "operator" "math_float" "apply" "less_than" "input1" "@upav_elapsed_time.output_stop_elapsed" "input2" "0.0" }
// "PRINT_upav_delta_trigger" // { // "operator" "util_print_float" // "input" "@upav_delta_trigger.output" // } // "PRINT_upav_min_time" // { // "operator" "util_print_float" // "input" "@upav_min_time.output" // } // "PRINT_upav_delta_and_time" // { // "operator" "util_print_float" // "input" "@upav_delta_and_time.output" // }
"upav_play_entry"
{
"input_execute" "@upav_delta_and_time.output"
"execute_once" "true"
"operator" "sys_start_entry"
"input_start" "@upav_delta_and_time.output"
"entry_name" "Default.Null"
}
"upav_stop_entry"
{
"input_execute" "@upav_delta_and_time.output"
"execute_once" "true"
"operator" "sys_stop_entries"
"stop_this_entry" "true"
}
update_stop_at_time
"usat_elapsed_time" { "operator" "get_entry_time" }
"usat_stop_time" { "operator" "math_float" "apply" "greater_than" "input1" "@usat_elapsed_time.output_sound_elapsed" "input2" "1.0" } "usat_stop_entry" { "execute_once" "true" "input_execute" "@usat_stop_time.output" "operator" "sys_stop_entries" "stop_this_entry" "true" }
halftime_update_start_at_time
"usat_elapsed_time" { "operator" "get_entry_time" } "is_halftime_opvar" { "operator" "get_opvar_float" "opvar" "csgo_ishalftime" } "usat_stop_time" { "operator" "math_float" "apply" "greater_than" "input1" "@usat_elapsed_time.output_sound_elapsed" "input2" "6.0" } "is_halftime_and" { "operator" "math_float" "apply" "min" "input1" "@is_halftime_opvar.output" "input2" "@usat_stop_time.output" }
"usat_stop_entry" { "execute_once" "true" "input_execute" "@is_halftime_and.output" "operator" "sys_stop_entries" "stop_this_entry" "true" } "upav_play_entry" { "input_execute" "@is_halftime_and.output" "execute_once" "true" "operator" "sys_start_entry" "input_start" "1" "entry_name" "Default.Null" } "clear_halftime_opvar" { "input_execute" "@is_halftime_and.output" "operator" "set_opvar_float" "opvar" "csgo_ishalftime" "input" "0.0" }
// ////////////////////////////////////////////////////////////////////////////////////////////
// //
// // MUSIC STACKS
// //
// ////////////////////////////////////////////////////////////////////////////////////////////
CS_update_music_stereo
"start_time_opvar" { "input_execute" "0.0" "operator" "get_opvar_float" "opvar" "csgo_roundstart_time" } "host_time" { "input_execute" "0.0" "operator" "get_sys_time" } "elapsed_roundtime" { "input_execute" "0.0" "operator" "math_float" "apply" "sub" "input1" "@host_time.output_client_time" "input2" "@start_time_opvar.output" } "elapsed_time" { "operator" "get_entry_time" } "source_info" { "operator" "get_source_info" // "source" "entity" "source" "emitter" } "mixer" { "operator" "get_soundmixer" "mixgroup" "Music" } "snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } // "snd_musicvolume_opvar" // { // "operator" "get_opvar_float" // "opvar" "csgo_music_volume" // } "snd_musicvolume_convar" { "operator" "get_convar" "convar" "snd_musicvolume_fixed" } // "snd_musicvolume_switch" // { // "operator" "math_logic_switch" // "input_switch" "@snd_musicvolume_opvar.output_opvar_exists" // "input1" "@snd_musicvolume_convar.output" // "input2" "@snd_musicvolume_opvar.output" // } // "snd_cuevolume_opvar" // { // "operator" "get_opvar_float" // "opvar" "csgo_music_volume" // } "snd_cuevolume_convar" { "operator" "get_convar" "convar" "snd_musicvolume_fixed" } // "snd_cuevolume_switch" // { // "operator" "math_logic_switch" // "input_switch" "@snd_cuevolume_opvar.output_opvar_exists" // "input1" "@snd_cuevolume_convar.output" // "input2" "@snd_cuevolume_opvar.output" // } // "snd_musicvolume_max" // { // "operator" "math_float" // "apply" "max" // "input1" "@snd_musicvolume_switch.output" // "input2" "0.0" // } "dashboard" { "operator" "get_dashboard" } // "opvar_total" // { // "operator" "math_float" // "apply" "mult" // "input1" "@snd_musicvolume_max.output" // "input2" "@snd_cuevolume_switch.output" // } "music_total" { "operator" "math_float" "apply" "mult" "input1" "@snd_musicvolume_convar.output" "input2" "@snd_cuevolume_convar.output" } "convar_total" { "operator" "math_float" "apply" "mult" "input1" "@music_total.output" "input2" "@snd_gain_convar.output" } "dashboard_total" { "operator" "math_float" "apply" "mult" "input1" "@convar_total.output" "input2" "@dashboard.output" } "volume_fade_in" { "operator" "math_remap_float" "input" "@elapsed_time.output_sound_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "0.0" "input_map_max" "1.0" "default_to_max" "true" } "volume_fade_initial" { "input_execute" "1" "operator" "math_remap_float" "input" "@elapsed_time.output_sound_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "1.0" "input_map_max" "1.0" "default_to_max" "false" } "volume_lfo_time_scale" { "operator" "math_float" "apply" "mult" "input1" "@elapsed_time.output_sound_elapsed" "input2" "0.0" } "volume_lfo" { "operator" "math_func1" "function" "cos" "normalize_trig" "true" "input1" "@volume_lfo_time_scale.output" } "volume_lfo_scale" { "operator" "math_float" "apply" "invert_scale" "input1" "@volume_lfo.output" "input2" "0.0" }
"volume_fade_out" { "operator" "math_remap_float" "input" "@elapsed_time.output_stop_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "0.0" "input_map_max" "1.0" "default_to_max" "false" } "volume_invert_fadeout" { "operator" "math_float" "apply" "sub" "input1" "1.0" "input2" "@volume_fade_out.output" } "volume_apply_fade_in" { "operator" "math_float" "apply" "mult" "input1" "@volume_fade_in.output" "input2" "@dashboard_total.output" } "volume_apply_fade_initial" { "operator" "math_float" "apply" "mult" "input1" "@volume_fade_initial.output" "input2" "@volume_apply_fade_in.output" } "volume_apply_lfo" { "operator" "math_float" "apply" "mult" "input1" "@volume_apply_fade_initial.output" "input2" "@volume_lfo_scale.output" } "volume_apply_fade_out" { "operator" "math_float" "apply" "mult" "input1" "@volume_apply_lfo.output" "input2" "@volume_invert_fadeout.output" } "volume_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_volume" "input2" "@volume_apply_fade_out.output" } "volume_apply_adjust" { "operator" "math_float" "apply" "mult" "input1" "1.0" "input2" "@volume_apply_mixer.output" } "speaker_volume" { "operator" "math_float" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_apply_adjust.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult" "left_front" "1.0" "right_front" "1.0" "center" "0.0" "lfe" "0.0" "left_rear" "0.8" "right_rear" "0.8"
"input2[*]" "@speaker_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" } "get_selection_mixlayer_opvar" { "operator" "get_opvar_float" "opvar" "selection_mixlayer" }
// for block the "duration" that the file plays "hold_mixlayer_time_calc" { "operator" "math_float" "apply" "greater_than" "input1" "@elapsed_time.output_sound_duration" "input2" "@elapsed_time.output_entry_elapsed" } "hold_mixlayer_time_calc2" { "operator" "math_float" "apply" "mult" "input1" "@hold_mixlayer_time_calc.output" "input2" "@get_selection_mixlayer_opvar.output" }
"output_mixlayer_trigger" { "operator" "sys_output" "input_float" "@hold_mixlayer_time_calc2.output" "output" "mixlayer_trigger" } "stoptime_elapsed_trigger" { "operator" "math_float" "apply" "greater_than" "input1" "@volume_invert_fadeout.output" "input2" "0.0" } "stop_hold_output" { "operator" "sys_output" "output" "stop_hold" "input_float" "@stoptime_elapsed_trigger.output" } // for block the "duration" that the file plays "block_entry_time_calc" { "operator" "math_float" "apply" "add" "input1" "0.5" "input2" "@elapsed_time.output_entry_elapsed" }
"block_entries" { "operator" "sys_block_entries" "input_active" "0.0" "input_duration" "@block_entry_time_calc.output" //in seconds, you can use "@get_random.output" for a random blocking period "match_substring" "true" "match_entry" "foo" //The sound entry to use "match_channel" "false" "match_entity" "false" }
CS_update_music_gungame_startround
"import_stack" "CS_update_music_stereo" "volume_fade_initial" { "input_execute" "1" "input_min" "1.0" "input_max" "6.0" "input_map_min" "1.0" "input_map_max" "0.3" "default_to_max" "false" } "volume_fade_out" { "input_max" "3.0" } "mixer" { "mixgroup" "BuyMusic" } "update_track" { "operator" "track_update" } "import_stack" "update_stop_at_time" "usat_stop_time" { "input2" "6.0" }
// ////////////////////////////////////////////////////////////////////////////////////////////
// //
// // STANDARD STACKS
// //
// ////////////////////////////////////////////////////////////////////////////////////////////
update_simple_quad
"save_restore_output" { "operator" "sys_output" "execute_once" "true" "input_float" "1.0" "output" "save_restore" } "mixer" { "operator" "get_soundmixer" "mixgroup" "All" } "snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "volume_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_volume" "input2" "@snd_gain_convar.output" } "speaker_volume" { "operator" "math_float" "apply" "mult" "input1" "1" "input2" "@volume_apply_mixer.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult" "left_front" "1.0" "right_front" "1.0" "center" "0.0" "lfe" "0.0" "left_rear" "1.0" "right_rear" "1.0"
"input2[*]" "@speaker_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" } "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" }
update_default
"elapsed_time" { "operator" "get_entry_time" }
////////////////////// // POSITION "source_info" { "operator" "get_source_info" // "source" "entity" "source" "emitter" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" // "mixgroup" "All" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME
// NOTE: distance has precalculated minimum distance of the ss players "volume_falloff" { "operator" "calc_falloff" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "volume_fade_out" { "operator" "math_remap_float" "input" "@elapsed_time.output_stop_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "1.0" "input_map_max" "0.0" "default_to_max" "true" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@volume_fade_out.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0" }
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" } "stoptime_elapsed_trigger" { "operator" "math_float" "apply" "greater_than" "input1" "@volume_fade_out.output" "input2" "0.0" } "stop_hold_output" { "operator" "sys_output" "output" "stop_hold" "input_float" "@stoptime_elapsed_trigger.output" }
CS_update_weapon
////////////////////// //convar which controls weapon falloff. "volume_sound_falloff_multiplier" { "operator" "get_convar" "convar" "weapon_sound_falloff_multiplier" }
////////////////////// // "variables" "volume_xfade_start_dist" { "operator" "math_float" "apply" "mult" "input1" "@volume_sound_falloff_multiplier.output" "input2" "800" } "volume_xfade_end_dist" { "operator" "math_float" "apply" "mult" "input1" "@volume_sound_falloff_multiplier.output" "input2" "2800" } "volume_falloff_min" { "operator" "math_float" "apply" "mult" "input1" "@volume_sound_falloff_multiplier.output" "input2" "400.0" } "volume_falloff_max" { "operator" "math_float" "apply" "mult" "input1" "@volume_sound_falloff_multiplier.output" "input2" "3937.0" }
////////////////////// // POSITION "source_info" { "operator" "get_source_info" // "source" "entity" "source" "emitter" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" "mixgroup" "AllWeapons" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME
// NOTE: distance has precalculated minimum distance of the ss players "volume_falloff" { "operator" "calc_falloff_curve" "input_distance" "@source_distance.output" //"input_level" "@level_apply_mixer.output" "input_min" "@volume_falloff_min.output" "input_max" "@volume_falloff_max.output" "input_atten" "0.98" "input_curve_amount" "0.7"
//make gunfire always play at low volume all across the map. "input_volume_min" "0.05" } "volume_distance_xfade" { "operator" "math_remap_float" "input" "@source_distance.output" "input_min" "@volume_xfade_start_dist.output" "input_max" "@volume_xfade_end_dist.output" "input_map_min" "1.0" "input_map_max" "0.0" //old: 0.0 "default_to_max" "false" } "volume_xfade_exponent" { "operator" "math_float" "apply" "pow" "input1" "@volume_distance_xfade.output" // "input2" "1.22" "input2" "1.2" } "volume_invert_distance_xfade" { "operator" "math_float" "apply" "sub" "input1" "1.0" "input2" "@volume_xfade_exponent.output" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@volume_invert_distance_xfade.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0"
}
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" }
CS_update_physics
////////////////////// // POSITION "source_info" { "operator" "get_source_info" "source" "entity" //"source" "emitter" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" "mixgroup" "Physics" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME
// NOTE: distance has precalculated minimum distance of the ss players "volume_falloff" { "operator" "calc_falloff_curve" "input_distance" "@source_distance.output" "input_min" "120.0" "input_max" "600.0" "input_atten" "1.0" "input_curve_amount" "0.1" }
"distance_shutdown" { "operator" "math_float" "apply" "less_than" "input1" "@source_distance.output" "input2" "600.0" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@distance_shutdown.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0"
}
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" }
CS_update_rics
////////////////////// // POSITION "source_info" { "operator" "get_source_info" // "source" "entity" "source" "emitter" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" "mixgroup" "BulletImpacts" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME
// NOTE: distance has precalculated minimum distance of the ss players "volume_falloff" { "operator" "calc_falloff_curve" "input_distance" "@source_distance.output" "input_min" "120.0" "input_max" "600.0" "input_atten" "1.0" "input_curve_amount" "0.1" }
"distance_shutdown" { "operator" "math_float" "apply" "less_than" "input1" "@source_distance.output" "input2" "600.0" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@distance_shutdown.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0"
}
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" }
CS_update_footsteps
"elapsed_time" { "operator" "get_entry_time" }
////////////////////// // POSITION "source_info" { "operator" "get_source_info" "source" "entity" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" // "mixgroup" "All" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" "input_scalar" "1.0" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME "volume_falloff" { "operator" "calc_falloff_curve" "input_distance" "@source_distance.output" "input_min" "120.0" "input_max" "1100.0" "input_atten" "0.96" "input_curve_amount" "0.7" } "volume_fade_out" { "operator" "math_remap_float" "input" "@elapsed_time.output_stop_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "1.0" "input_map_max" "0.0" "default_to_max" "true" }
"random_volume" //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" "1.0" //high value here. "round_to_int" "false" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "0.8" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@volume_fade_out.output" "input7" "@source_info.output_volume" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "@random_volume.output" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0" }
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" } "stoptime_elapsed_trigger" { "operator" "math_float" "apply" "greater_than" "input1" "@volume_fade_out.output" "input2" "0.0" } "stop_hold_output" { "operator" "sys_output" "output" "stop_hold" "input_float" "@stoptime_elapsed_trigger.output" }
// SUIT SOUNDS
CS_update_suit
"elapsed_time" { "operator" "get_entry_time" }
////////////////////// // POSITION "source_info" { "operator" "get_source_info" "source" "entity" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" // "mixgroup" "All" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" "input_scalar" "1.0" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME "volume_falloff" { "operator" "calc_falloff_curve" "input_distance" "@source_distance.output" "input_min" "120.0" "input_max" "1100.0" "input_atten" "0.96" "input_curve_amount" "0.7" } "volume_fade_out" { "operator" "math_remap_float" "input" "@elapsed_time.output_stop_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "1.0" "input_map_max" "0.0" "default_to_max" "true" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@volume_fade_out.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0" }
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" } "stoptime_elapsed_trigger" { "operator" "math_float" "apply" "greater_than" "input1" "@volume_fade_out.output" "input2" "0.0" } "stop_hold_output" { "operator" "sys_output" "output" "stop_hold" "input_float" "@stoptime_elapsed_trigger.output" }
//////////
///// WEAPON FOLEY
/////////
CS_update_foley
"elapsed_time" { "operator" "get_entry_time" }
////////////////////// // POSITION "source_info" { "operator" "get_source_info" "source" "entity" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" }
// Phonon calculation -- xfade phonon effects once the player // is very close to the emitter. "phonon_xfade_start_dist" { "operator" "math_float" "apply" "add" "input1" "0.0" "input2" "50" } "phonon_xfade_end_dist" { "operator" "math_float" "apply" "add" "input1" "0.0" "input2" "180" } "phonon_distance_xfade" { "operator" "math_remap_float" "input" "@source_distance.output" "input_min" "@phonon_xfade_start_dist.output" "input_max" "@phonon_xfade_end_dist.output" "input_map_min" "0.0" "input_map_max" "1.0" "default_to_max" "true" }
"phonon_output" { "operator" "sys_output" "input_float" "@phonon_distance_xfade.output" "output" "phonon_xfade" }
//////////////////// // calc "mixer" { "operator" "get_soundmixer" // "mixgroup" "All" }
// NOTE: uses player data, ie: SS, return least occluded value "occlusion" { "operator" "calc_occlusion" "input_position" "@source_info.output_position" "input_scalar" "1.0" }
"snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME "volume_falloff" { "operator" "calc_falloff_curve" "input_distance" "@source_distance.output" "input_min" "400.0" "input_max" "1100.0" "input_atten" "0.96" "input_curve_amount" "0.7" } "volume_fade_out" { "operator" "math_remap_float" "input" "@elapsed_time.output_stop_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "1.0" "input_map_max" "0.0" "default_to_max" "true" }
// multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@volume_falloff.output" "input3" "@mixer.output_volume" "input4" "@snd_gain_convar.output" "input5" "@occlusion.output" "input6" "@volume_fade_out.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
// output mix layer trigger "output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" } /////////////////// // PITCH "pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0" }
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" }
"speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" } "stoptime_elapsed_trigger" { "operator" "math_float" "apply" "greater_than" "input1" "@volume_fade_out.output" "input2" "0.0" } "stop_hold_output" { "operator" "sys_output" "output" "stop_hold" "input_float" "@stoptime_elapsed_trigger.output" }
CS_update_linear_falloff
////////////////////// // POSITION "source_info" { "operator" "get_source_info" // "source" "entity" "source" "emitter" }
"get_entity_info" { "input_execute" "1" "operator" "game_entity_info" "input_entity_index" "@source_info.output_entity_index" }
// reports various time values "elapsed_time" { "operator" "get_entry_time" }
// NOTE: uses player data, ie: SS, returns minimum distance "source_distance" { "operator" "calc_source_distance" "input_position" "@source_info.output_position" // "in2d" "1.0" }
// get values of specified mixgroup // NOTE: I believe this also sets this sound to be a member of that mixgroup as well // which is relevant to mixlayers "mixer" { "operator" "get_soundmixer" "mixgroup" "All" }
"output_mixlayer_trigger" { "execute_once" "1" "operator" "sys_output" "input_float" "1" "output" "mixlayer_trigger" }
// NOTE: uses player data, ie: SS, return least occluded value // "occlusion" // { // "operator" "calc_occlusion" // "input_position" "@source_info.output_position" // }
// convar to control all sound levels "snd_gain_convar" { "operator" "get_convar" "convar" "snd_gain" } "snd_op_test_convar" { "operator" "get_convar" "convar" "snd_op_test_convar" }
////////////////////// // LEVEL // adjust SPL to reflect mixer settings, this will be used below in falloff calculations "level_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_level" "input2" "@source_info.output_level" }
///////////////////// // VOLUME // // Various volume calculations //
"volume_falloff_linear" { "operator" "math_remap_float" "input" "@source_distance.output" "input_min" "30.0" "input_max" "3000.0" "input_map_min" "1.0" "input_map_max" "0.05" "default_to_max" "false" }
"volume_fade_in" { "operator" "math_remap_float" "input" "@elapsed_time.output_entry_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "0.05" "input_map_max" "1.0" "default_to_max" "true" } "volume_fade_out" { "operator" "math_remap_float" "input" "@elapsed_time.output_stop_elapsed" "input_min" "0.0" "input_max" "0.0" "input_map_min" "1.0" "input_map_max" "0.0" "default_to_max" "false" } // multiply all volume adjustments together "volume_accumulate" { "operator" "math_float_accumulate12" "apply" "mult" "input1" "@source_info.output_volume" "input2" "@mixer.output_volume" "input3" "@snd_gain_convar.output" "input4" "@volume_falloff_linear.output" "input5" "@volume_fade_in.output" "input6" "@volume_fade_out.output" "input7" "1.0" "input8" "1.0" "input9" "1.0" "input10" "1.0" "input11" "1.0" "input12" "1.0" }
///////////////////////////////////////////////////////// // handle stoptime/fade outs "stoptime_elapsed_trigger" { "operator" "math_float" "apply" "greater_than" "input1" "@volume_fade_out.output" "input2" "0.0" } "stop_hold_output" { "operator" "sys_output" "output" "stop_hold" "input_float" "@stoptime_elapsed_trigger.output" }
/////////////////// // PITCH
"pitch_output" { "operator" "sys_output" "output" "pitch" "input_float" "@source_info.output_pitch" }
/////////////////// // DSP "dsp_emitter" { "operator" "math_float" "apply" "set" "input1" "1.0" } "dsp_apply_mixer" { "operator" "math_float" "apply" "mult" "input1" "@mixer.output_dsp" "input2" "@dsp_emitter.output" } "dsp_distantDSP" { "operator" "calc_distant_dsp" "input_distance" "@source_distance.output" "input_level" "@level_apply_mixer.output" } "dsp_apply_distant" { "operator" "math_float" "apply" "mult" "input1" "@dsp_distantDSP.output" "input2" "@dsp_apply_mixer.output" } "dsp_output" { "operator" "sys_output" "input_float" "@dsp_apply_distant.output" "output" "dsp" }
///////////////////// // SPEAKERS
// NOTE: uses player data, ie: SS, calculates all players and merges them "speakers_spatialize" { "operator" "calc_spatialize_speakers" "input_radius_min" "23" "input_radius_max" "24" "input_distance" "@source_distance.output" "input_position" "@source_info.output_position" "input_rear_stereo_scale" "1.0"
}
"speakers_apply_volume" { "operator" "math_speakers" "apply" "mult" "input1" "@speakers_spatialize.output" "input2[*]" "@volume_accumulate.output" }
"speakers_limit" { "operator" "math_speakers" "apply" "mult"
"left_front" "1.0" "right_front" "1.0" "center" "1.0" "lfe" "1.0" "left_rear" "1.0" "right_rear" "1.0"
"input2" "@speakers_apply_volume.output" } "speakers_output" { "operator" "sys_output" "input_speakers" "@speakers_limit.output" "output" "speakers" }
update_stop_at_track_syncpoint
"usats_this_entry_syncpoints" { "operator" "get_track_syncpoint" "syncpoint_list" "syncpoints_1" "this_entry_syncpoints" "true" }
"usats_elapsed_time" { "operator" "get_entry_time" }
"usats_stop_time" { "operator" "math_float" "apply" "greater_than" "input1" "@usats_elapsed_time.output_sound_elapsed" "input2" "@usats_this_entry_syncpoints.output_first_syncpoint" } "usats_stop_entry" { "input_execute" "@usats_stop_time.output" "operator" "sys_stop_entries" "stop_this_entry" "false" "input_max_entries" "0.000000" //A sound will not stop itself from playing. "match_entity" "false" "match_entry" "Default.Null" }