[not a bug] 2 sounds when landing
Posted: Mon Apr 24, 2006 18:36
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
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 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):
Is that right or is there a better way?
[/offtopic]
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
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
Code: Select all
$alias keytry *usefail
$random keytry { lock1 lock2... }
lock1 DSlock1
lock2 DSlock2
...
[/offtopic]