Page 1 of 1

[not a bug] 2 sounds when landing

Posted: Mon Apr 24, 2006 18:36
by Enjay
I thought this had been fixed a long time ago in Zdoom, but I'm experiencing it with GZDoom in Heretic. I can't test it ATM in ZDoom, but when I get a chance, I will. I'm getting 2 different sounds played when landing from a height.

I've defined 2 different sounds for "player male *land" and "player male *grunt"

I did this by altering the sound lump PLROOF (the grunt sound) to something more useful to me and also adding the following

Code: Select all

$playersound   player   male   *land    DSLAND
to my soundinfo to replace the $playersounddup entry for the land sound in the default sndinfo.

Now, it seems to work to a certain extent. When I use a wall, I get my PLROOF sound. When I jump off a low step (say maybe 8 units tall), by pressing the jump button, and landing on the lower floor, I hear my DSLAND sound. However, if I jump off anything much taller than that (64 units was enough) I hear PLROOF and DSLAND at the same time - which sounds stupid because my PLROOF is not the sort of noise you make when falling from a height.


[offtopic]
Also, how do I randomise a player sound? I want

Code: Select all

$playersounddup	player	male	*usefail
to use any one from a number of different sounds but I can't figure it out. Every time I want to mess with player sounds, Zdoom tells me off for doing it. ATM, I've used this (which seems to work):

Code: Select all

$alias keytry	*usefail
$random keytry { lock1 lock2... }

lock1			DSlock1
lock2			DSlock2 
...
Is that right or is there a better way?
[/offtopic]

Posted: Mon Apr 24, 2006 19:05
by Graf Zahl
This is fully intentional and not a bug. What was fixed was the situation when both sounds are the same.

Posted: Mon Apr 24, 2006 23:50
by Enjay
Oh well, it looks like I'll have to find something a little more suitable for my wall-using noise if it's going to be used when landing hard too. It seems "overkill" to use the grunt sound and the landing sound at the same time. Surely that negates one of the main reasons for being able to separate these two into different sounds. :? If it was really felt necessary to make the heavy landing sound heavy, a grunt sound, a land sound and a heavy land sound would have been a better way of setting it up IMO.


Any ideas on the other thing, or should I re-ask over at Zdoom Editing?

Posted: Tue Apr 25, 2006 0:41
by Graf Zahl
These two sounds serve different purposes.

The landing sound is the noise the player's feet make, the grunt sound is what comes out of his mouth. ;)

Posted: Tue Apr 25, 2006 13:02
by Enjay
Heh, I guess that explanation makes sense. :)