Page 1 of 1

A_StopAllSounds

Posted: Sat Jan 18, 2020 11:15 am
by Major Cooke
Pull Request

And a test sample:

Code: Select all

Class z : Actor
{
	Default
	{
		Radius 13;
		Height 8;
		Speed 25;
		Damage 5;
		Projectile;
		+RANDOMIZE
		+ZDOOMTRANS
		+BRIGHT
		RenderStyle "Add";
		Alpha 0.75;
		Obituary "$OB_MPPLASMARIFLE";
	}
	States
	{
	Spawn:
		PLSS A 6 A_StartSound("weapons/plasmaf", 8);
		PLSS B 6 A_StartSound("weapons/plasmaf", 9);
		Loop;
	Death:
		PLSE A 4
		{
			A_StopAllSounds();
			A_StartSound("weapons/plasmax");
		}
		PLSE ABCDE 4;
		Stop;
	}
}

Re: A_StopAllSounds

Posted: Sun Jan 19, 2020 5:00 am
by Marisa the Magician
I would appreciate this too.

Re: A_StopAllScreeching

Posted: Tue Jan 21, 2020 8:15 pm
by Uni-000
Mmm, tasty Idea, I think this would do!

Re: A_StopAllSounds

Posted: Thu Jan 23, 2020 5:35 pm
by Matt
Related request: IsActorPlayingAnySound()

Re: A_StopAllSounds

Posted: Fri Jan 24, 2020 11:19 am
by Uni-000
Matt wrote:Related request: IsActorPlayingAnySound()
Could be useful for TItlemaps. +1

Re: A_StopAllSounds

Posted: Sun Jan 26, 2020 4:01 pm
by Major Cooke
Matt, you should make a new thread for it.

Re: A_StopAllSounds

Posted: Mon Jan 27, 2020 1:08 am
by Graf Zahl
Matt wrote:Related request: IsActorPlayingAnySound()

Can already be done by passing 0 for the channel and sound id to the existing check functions.

Re: A_StopAllSounds

Posted: Mon Jan 27, 2020 1:58 am
by Matt
Sweet, that would've been exactly what I would've suggested had it not already been the case!

Re: A_StopAllSounds

Posted: Sat Feb 29, 2020 12:12 pm
by Major Cooke