*sound.slot "str slot"

Moderator: GZDoom Developers

Post Reply
User avatar
Lioyd_Irving
Posts: 427
Joined: Fri Dec 07, 2007 1:47 am
Location: Southtown

*sound.slot "str slot"

Post by Lioyd_Irving »

An extension to the PainSound, AttackSound and everything ending in Sound, it consists in changing the default sound slot of an actor's attack, pain or whatever sound to the one specified, unless the A_PlaySound(Ex) function explicitly mentions another slot.

Code: Select all

ACTOR SuperSpecialAwesomeBomb
{
             attacksound.slot "Voice" //Attack sound will be using the Voice slot by default, instead of the Weapon slot
             States
             {
             Fire:
                 BOMB 8 A_SuperSpecialAwesomeAttackFunction
                 BOMB 8 A_PlaySound("superspecial/awesomesound", CHAN_WEAPON) //but this one will use the Weapon slot
                 Goto Hell                                                    //because A_PlaySound says so
             }
}
Admittedly, I only ask for it because I need it, but I'm sure this could be of use for some workarounds too.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: *sound.slot "str slot"

Post by Graf Zahl »

Good idea, very bad way to do it. :P

I'd rather add a second parameter to the sound properties for it.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: *sound.slot "str slot"

Post by XutaWoo »

Yeah, that seems like it'd make a lot more sense. :P

So we can expect this whenever you get around to it?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”