ee_song
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.teddys = 0;
thread teddys();
}
teddys()
{
trigger = GetEntArray("dubstep_trigger","targetname");
for(h = 0; h < trigger.size; h++)
trigger[h] thread shot(trigger);
}
shot(trigger)
{
self PlayLoopSound("meteor_loop");
self SetCursorHint("HINT_NOICON");
self waittill("trigger", player);
level.teddys++;
self StopLoopSound();
self.get_var = self;
self.get_var PlaySound("meteor_affirm");
wait .05;
self delete();
if(level.teddys == trigger.size)
{
players = getplayers();
for(i = 0; i < players.size; i++)
players[i] PlaySound("ee_alias"); // Enter the soundalias here!
}
}
root/mods/MAPNAME/maps/
maps\_zombiemode::main();
thread maps\ee_song::main();
root/raw/soundalias/
ee_song
name,file,platform,sequence,vol_min,vol_max,dist_min,dist_max,limit_count,limit_type,entity_limit_count,entity_limit_type,bus,volume_min_falloff_curve,volumefalloffcurve,reverb_send,dist_reverb_max,reverb_min_falloff_curve,reverb_falloff_curve,pitch_min,pitch_max,randomize_type,spatialized,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,chainaliasname,startdelay,speakermap,lfe percentage,center percentage,envelop_min,envelop_max,envelop percentage,occlusion_level,occlusion_wet_dry,real_delay,distance_lpf,move_type,move_time,min_priority,max_priority,min_priority_threshold,max_priority_threshold,,isbig
ee_alias,SOUND_FOLDER_PATH\SOUND_FILE_NAME.wav,,,1,1,50,800,,,,,music,,,0.8,1800,,curve0,1,1,,2d,,,,,,,,,,,,,,100,200,0.5,0.15,,,,,,90,90,0.25,1,,
root/raw/soundalias/
targetname - dubstep_trigger
sound,ee_song,,all_sp
In the ee_song.gsc you say change 3 to how many teddys you will have but what 3 do you mean? Cause I dont see any 3. Really would like to get this working :)I don't see any reason for it to say that. Just ignore it, it should get the size from the teddy array so that comment about changing the 3 wasn't needed. My guess is that he made this by editing some other script he had.
I don't see any reason for it to say that. Just ignore it, it should get the size from the teddy array so that comment about changing the 3 wasn't needed. My guess is that he made this by editing some other script he had.
I stopped reading when I saw the word dubstep
I stopped reading when I saw the word dubstepWho does not like dubstep :D
Anyone able to tell me how to have 2 running as in I have 2 songs working but if I trigger one wait till the song has finished then trigger the other one, the 2nd one doesn't play, anyone able to help with that? As im looking to put 3 in total in my map
Well done HitmanVere ;)
Very nice work