Custom Pain Sound

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
The T_W_C
Posts: 14
Joined: Tue Dec 01, 2020 9:24 am

Custom Pain Sound

Post by The T_W_C »

Trying to use a custom pain sound in place of the original doom pain sound so that it doesn't sound like the normal doomguy my player gets hit by an enemy.

this is all the code, files and info I have for my sound the files, the sndinfo and my playerclass and accompanying soundclass
Attachments
Capture1.PNG
Capture1.PNG (5.05 KiB) Viewed 612 times
Capture3.PNG
Capture3.PNG (8.29 KiB) Viewed 612 times
Capture2.PNG
User avatar
eharper256
Posts: 1086
Joined: Sun Feb 25, 2018 2:30 am
Location: UK
Contact:

Re: Custom Pain Sound

Post by eharper256 »

For whatever reason, the 'female' gender in DECORATE coding doesn't work in my experience; and all players default to male in GZDoom, so I would try changing it to male. I had to do the same for my female class.
User avatar
Enjay
 
 
Posts: 26935
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Custom Pain Sound

Post by Enjay »

I have a custom player in DECORATE that can use male, female, neutral and cyborg voices. I didn't do anything fancy - just provided the sounds and based my player class off DoomPlayer.
Post Reply

Return to “Scripting”