Now I am trying to get a sound to play in a room without spilling out the walls yet still reaching the corners - I can not do this with the radius method.
I have been trying for about 10 hours and just can't get anywhere - I was thinking that a Trgger_multiple that filled the room and some sort of object (script origin or model or a non-colliding caulk brush ) for the sound to be anchored to would work but no matter what I do it wont work.
I have one script that does nothing yet if I change the song name to one I haven't got then the game will say it can't find it when I am in the trigger. I guess from this that the script is calling the song but I can not hear it.
Code: Select all
main()
{
thread globalSoundFx();
thread test_sound1();
}
globalSoundFx()
{
maps\mp\_fx::loopSound("7th_dimension",(1024,1024,472),1);
maps\mp\_fx::loopSound("coventry_carol",(1899,1553,364),1);
// maps\mp\_fx::loopSound("7th_dimension",("sound_origin"),1);
}
test_sound1()
{
orig = getent("sound_origin","targetname");
trig = getent("sound_trigger","targetname");
for (;;)
{
trig waittill("trigger",player);
orig playsoundtoplayer("7th_dimension",player);
wait(3);
}
}
//test_sound1()
// {
// orig = getent ("sound_origin","targetname");
// trig = getent ("sound_trigger","targetname");
// while(1)
// {
// trig waittill ("trigger");
// orig playsound("7th_dimension");
// wait(5);
// }
// }
Any help would be great - it is now 04:00 and I am tearing my hair out due to lack of sleep so giving up on it for tonight but will check back here periodically to see if there is any advice.
Thank you for reading..