I've seen there is a tricky issue to set $playersound in this forum and absolutely I'm the one who has a problem about it. Some sounds are played but others aren't.
For example:
Code: Select all
$playersound CustomPlayer male *gasp "sounds/CustomPlayer/CustomPlayer_gasp.ogg"
$playersounddup CustomPlayer male *surface *gasp
And,
Code: Select all
CustomPlayer/Gasp "sounds/CustomPlayer/CustomPlayer_gasp.ogg"
$playersound CustomPlayer male *gasp CustomPlayer/Gasp
$playersounddup CustomPlayer male *surface *gasp
Like the surface sound, somehow pain sounds and death sounds aren't played. I needed to make a hacky Event Handler for them. And *pain-drowning sounds aren't played like them, perhaps I'll need to create another hacky Event Handler for this...
I hope this can be solved to use the Event Handler or add something to the custom player class because the surface sound is hard-coded AFAIK.
Is it possible to handle the surface sound from ZScript or other definitions?
Note that I'm still using GZDoom 4.8.2 and the problem of playing *grunt and *surface sounds are fixed in 4.9.0, so probably this would be solved if I just update the engine though, I have a problem with $playersound in the first place.