sound_operator_stacks.txt

(108 KB) Pobierz
"start_stacks"
{
	"start_default"
	{
		"stop_entries"
		{
			"operator" "sys_stop_entries"
		}
	}
	"start_test_random"
	{
		"random_float"
		{
			"operator" "math_random"
			"input_min" "0.0"
			"input_max" "1.0"
		}
	}

	"start_test"
	{

		// "get_elapsed"
		// {
			// "operator" "get_entry_time"
		// }

// 		"play_entry"
// 		{
// 			"operator" "sys_start_entry"
// 			"input_start" "1"	
// 			"entry_name" "xray.beep"	
// 		}
		"stop_entries"
		{
			"operator" "sys_stop_entries"
		}
		"block_entries"
		{
			"operator" "sys_block_entries"
			"input_active" "1.0"	
			"input_duration" "2.0"
			"match_substring" "false"
			"match_entry" "xray.beep"
			// "match_sound" "npc\dog\dog_idlemode_loop1.wav"
			"match_channel" "false"
			"match_entity" "false"
		}
		"delay_output"
		{
			"operator" "sys_output"
			"input_float" "0.0"
			"output" "delay"
		}
	}
	"start_global_bpm_quantize"
	{
		"sys_time"
		{
			"operator" "get_sys_time"
		}
		"bpm"
		{
			"operator" "math_float"
			"apply" "div"	
			"input1" "60"
			"input2" "120"	
		}
		"beats"
		{
			"operator" "math_float"
			"apply" "mult"	
			"input1" "@bpm.output"
			"input2" "1"	
		}
 		"time_mod"
		{
			"operator" "math_float"
			"apply" "mod"
			"input1" "@sys_time.output_client_time"
			"input2" "@beats.output"
		}
 		"negative_delay"
		{
			"operator" "math_float"
			"apply" "mult"
			"input1" "@time_mod.output"
			"input2" "-1.0"
		}
		"delay_output"
		{
			"operator" "sys_output"
			"input_float" "@negative_delay.output"
			"output" "delay"
		}
	}
	"start_sync_to_entry"
	{
		"elapsed_time"
		{
			"operator" "get_entry_time"
		}
		"duration_div"
		{
			"operator" "math_float"
			"apply" "div"	
			"input1" "@elapsed_time.output_sound_duration"
			"input2" "4"	
		}
 		"time_mod"
		{
			"operator" "math_float"
			"apply" "mod"
			"input1" "@elapsed_time.output_sound_elapsed"
			"input2" "@duration_div.output"
		}
 		"div_mult"
		{
			"operator" "math_float"
			"apply" "mult"
			"input1" "0.0"
			"input2" "@duration_div.output"
		}
 		"add_offset"
		{
			"operator" "math_float"
			"apply" "add"
			"input1" "@time_mod.output"
			"input2" "@div_mult.output"
		}
 		"negative_delay"
		{
			"operator" "math_float"
			"apply" "mult"
			"input1" "@add_offset.output"
			"input2" "-1.0"
		}
		"delay_output"
		{
			"operator" "sys_output"
			"input_float" "@negative_delay.output"
			"output" "delay"
		}
	}
	"start_delay_sync_to_entry"
	{
		"import_stack" "start_sync_to_entry"
 		"negative_delay"
		{
			"apply" "sub"
			"input1" "@duration_div.output"
			"input2" "@time_mod.output"
		}

	}

	"P2_coop_robot_start"
	{
		"stop_footsteps"
		{
			"operator" "sys_stop_entries"
			"input_max_entries" "0.000000" //A sound will not stop itself from playing.
			"match_entity" "false"	
			"match_substring" "true"	
		}
	}
	
	"P2_portalgun_start"
	{
		"stop_gun"
		{
			"operator" "sys_stop_entries"
			"input_max_entries" "0.000000" //A sound will not stop itself from playing.
			"match_entity" "false"	
			"match_substring" "true"	
		}
	}
	
	"P2_poly_limiting_start" //Generic poly limiter.  Override values to make usable.
	{
		"limit_sound"
		{
			"operator" "sys_stop_entries"
			"input_max_entries" "0.000000" //A sound will not stop itself from playing.
			"match_entity" "false"	
			"match_substring" "true"
			"match_entry" "NONE"		
		}
		
		"limit_robot_sounds"
		{
			"operator" "sys_stop_entries"
			"input_max_entries" "23.000000" //A sound will not stop itself from playing.
			"match_entity" "false"	
			"match_substring" "true"
			"match_entry" "Robot"		
		}
		
		//Console hacks begin here.
		
		
		"sys_get_platform" //should be for X360/PS3, only use PC for testing.
		{
			"operator" "sys_platform"
			//"pc" "true" //IF THIS IS UNCOMMENTED CHANGE IT!!!  SERIOUSLY!!!
			"x360" "true"
			"ps3" "true"
		}
		
		"limit_robot_sounds_ps3"
		{
			"operator" "sys_stop_entries"
			"input_execute" "@sys_get_platform.output"
			"input_max_entries" "9.000000" //I hate myself.
			"match_entity" "false"	
			"match_substring" "true"
			"match_entry" "Robot"		
		}
		
		"ps3_num_voices_compare"
		{
			"operator" "math_float"
			"apply" "greater_than_or_equal"	
			"input1" "@limit_robot_sounds_ps3.output_entries_matching" // This is the percentage chance to play a null
			"input2" "10.0" //match the max number of played sounds ( = input_max_entries + 1 )
		}
		
		"block_robot_entries_ps3"  //helps with disc I/O: Blocks sound requests of robots once a max number of robots exist
		{
			"operator" "sys_block_entries"
			//"input_execute" "0.0"
			"input_execute" "@ps3_num_voices_compare.output"
			"input_active" "1.0"	
			"input_duration" "0.25" //in seconds, you can use "@get_random.output" for a random blocking period
			"match_substring" "true"
			"match_entry" "Robot" //The sound entry to use
			"match_channel" "false"
			"match_entity" "false"
		}
		
		"limit_sound_ps3"
		{
			"operator" "sys_stop_entries"
			"input_execute" "0.0"
			//"input_execute" "@sys_get_platform.output"
			"input_max_entries" "0.000000" //A sound will not stop itself from playing.
			"match_entity" "false"	
			"match_substring" "true"
			"match_entry" "NONE"		
		}
		
		"block_entries_ps3"
		{
			"operator" "sys_block_entries"
			"input_execute" "0.0"
			//"input_execute" "@sys_get_platform.output"
			"input_active" "1.0"	
			"input_duration" "5.0" //in seconds, you can use "@get_random.output" for a random blocking period
			"match_substring" "false"
			"match_entry" "NONE" //The sound entry to use
			"match_channel" "false"
			"match_entity" "false"
		}
		
	}
	
	"P2_exclusion_time_blocker_start" //Generic exclusion time.  Override values to make usable.
	{
		"get_random"
		{
			"operator" "math_random"
			"input_execute" "0.0"
			"input_min" "0.0"
			"input_max" "1.0"		
		}
		
		"block_entries"
		{
			"operator" "sys_block_entries"
			"input_active" "1.0"	
			"input_duration" "0.1" //in seconds, you can use "@get_random.output" for a random blocking period
			"match_substring" "false"
			"match_entry" "NONE" //The sound entry to use
			// "match_sound" "npc\dog\dog_idlemode_loop1.wav"
			"match_channel" "false"
			"match_entity" "false"
		}
	}
	
	"P2_exclusion_time_and_poly_limiting_start" //Combines exclusion time and poly limiting
	{
		"import_stack" "P2_exclusion_time_blocker_start"
		"import_stack" "P2_poly_limiting_start"		
	}
	
	"P2_null_start" //replaces null.wav
	{
		"get_random_null"
		{
			"operator" "math_random"
			"input_execute" "0.0"
			"input_min" "0.0"
			"input_max" "1.0"		
		}
		
		"percent_null"
		{
			"operator" "math_float"
			"apply" "greater_than"	
			"input1" "0.60" // This is the percentage chance to play a null
			"input2" "@get_random_null.output" 
		}

		"block_start"
		{	
			"input_execute" "1.0"
			//"input_execute" "@percent_null.output"
			"operator" "sys_output"
			"input_float" "1"
			"output" "block_start"
		}
	}
	
	"P2_null_player_start" //Play an entry other than the called one!
	{
		"play_entry"
		{
			"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.
		}

		"block_start"
		{	
			"input_execute" "1.0"
			"operator" "sys_output"
			"input_float" "1"
			"output" "block_start"
		}	
	
	}


////////////////////////////////////////////////////////////////////////////////////////////
//
// dialog start stacks
//
////////////////////////////////////////////////////////////////////////////////////////////

	"P2_glados_start" // default start stack for glados v.o.
	{
		"set_mixlayer_vol_wheatley"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "gladosVOLayer"
			"mixgroup" "wheatleyVO"
			"field" "volume"
			"input" "1.0"
		}
		"set_mixlayer_vol_announcer"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "gladosVOLayer"
			"mixgroup" "announcerVO"
			"field" "volume"
			"input" "1.0"
		}
		"set_mixlayer_vol_cave"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "gladosVOLayer"
			"mixgroup" "caveVO"
			"field" "volume"
			"input" "1.0"
		}
	}
	"P2_glados_start_mute" // default start stack for glados v.o.
	{
		"set_mixlayer_mute_wheatley"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "gladosVOLayer"
			"mixgroup" "wheatleyVO"
			"field" "mute"
			"input" "0.0"
		}
		"set_mixlayer_mute_announcer"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "gladosVOLayer"
			"mixgroup" "announcerVO"
			"field" "mute"
			"input" "0.0"
		}
		"set_mixlayer_mute_cave"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "gladosVOLayer"
			"mixgroup" "caveVO"
			"field" "mute"
			"input" "0.0"
		}
	}
	"P2_wheatley_start" // default start stack for wheatley v.o.
	{
		"set_mixlayer_vol_glados"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "wheatleyVOLayer"
			"mixgroup" "gladosVO"
			"field" "volume"
			"input" "1.0"
		}
		"set_mixlayer_vol_announcer"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "wheatleyVOLayer"
			"mixgroup" "announcerVO"
			"field" "volume"
			"input" "1.0"
		}
	}
	"P2_announcer_start" // default start stack for announcer v.o.
	{
		"set_mixlayer_vol_glados"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "announcerVOLayer"
			"mixgroup" "gladosVO"
			"field" "volume"
			"input" "1.0"
		}
		"set_mixlayer_vol_wheatley"
		{
			"operator" "sys_mixlayer"
			"mixlayer" "announcerVOLayer"
			"mixgroup" "wheatleyVO"
			"field" "volume"
			"input" "1.0"
		}
	}
	

}


///////////////////////////////////...
Zgłoś jeśli naruszono regulamin