Hey guys!
To be sure that this is a bug Im asking here now since I cant stand it any longer. I really need that feature so...
Heres my code first:
Code:
#include <acknex.h>
#include <default.c>
#include <ackoal.h>

SOUND *pSound = NULL;

function test1()
{
	var han = ent_playloop(me, pSound, 500);
	var envEAXSoundSys = eax_create();
	eax_set(envEAXSoundSys, FX_UNDERWATER);
	eax_attach(envEAXSoundSys, han);
}

function test2()
{
	while(me)
	{
		if(key_a)
		{
			var han = ent_playsound(me, pSound, 500);
			var envEAXSoundSys = eax_create();
			eax_set(envEAXSoundSys, FX_UNDERWATER);
			eax_attach(envEAXSoundSys, han);
			wait(-0.5);
		}
		
		wait(1);
	}
}


function main()
{
	pSound = snd_createoal("Shoot_mono.wav");
	
	level_load(NULL);
	ent_create(CUBE_MDL, nullvector, test2);
}



You will see that test1 will work fine, but test2 will work only ONE time. After the first shoot sound appeared the second wont have any eax effects...

EDIT:

Code:
wait(-0.5);
eax_remove(envEAXSoundSys);



Doing this its working but I cant do that in my code since Im assigning the reverb to ALL eax sounds Im playing!

Last edited by Ch40zzC0d3r; 08/19/13 15:51.