The TERRAIN lump/file already has the ability to define a sound from SNDINFO when the player drops on a specific flat (e.g a heavy wood creaking sound when you land on a wooden flat), but as the wiki article mentions that is different from a footstep sound that plays when you simply walk across a particular flat.
So I was wondering if it would be possible to add a property in TERRAIN that allows you to define a sound that plays when you walk across a flat, which I'm guessing would also make the sound play faster the quicker you move across the flat, perhaps with the speed at which the sound plays being a configurable property too. The later would be useful if for example you walked over a flat and the footstep sound played too fast for some reason, so you could just set the footstep speed property for that TERRAIN definition down to 0.5 to half the speed at which the footstep sound plays. Would also be nice if it could be implemented to have monsters also make footstep and/or drop sounds as well.
Note: In case anyone suggests that I use The Zombie Killer's ACS footsteps mod, or its' ZScript port. I know about them but they are fairly difficult to set up and use, and they exist to implement something that should already exist natively anyways. Through a simple property or two for mappers to use, not by having to import an ACS or ZScript library to your map, mapset or mod just for being able to hear the sound of dirt when walking across a dirt floor.
Footstep sound property in TERRAIN
Moderator: GZDoom Developers
-
- Posts: 83
- Joined: Mon Aug 26, 2019 9:18 pm
- Graphics Processor: nVidia with Vulkan support
-
- Posts: 227
- Joined: Wed Dec 27, 2006 8:13 pm
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Location: Canton, OH
Re: Footstep sound property in TERRAIN
While I can agree having this natively isn't a bad idea, I will say that with multi-class/character capabilties for GZDoom, you'd need to account for different characters possibly making different footsteps sounds on the same terrain [or if that class/character doesn't have feet, none at all]. I have a feeling lacking conditional checks for certain sounds is a big issue if this were to go through. :V
[Also, my own mod uses the ACS footsteps mod, so I can sort of understand your general pain on this issue, but there will have to be more to this feature than the above if it gets done for more "accuracy", though I am not a programmer, so that's up to the developers what they'd do. ]
[Also, my own mod uses the ACS footsteps mod, so I can sort of understand your general pain on this issue, but there will have to be more to this feature than the above if it gets done for more "accuracy", though I am not a programmer, so that's up to the developers what they'd do. ]
-
- Posts: 1748
- Joined: Fri Sep 23, 2005 9:17 am
- Location: Czech Republic
Re: Footstep sound property in TERRAIN
I stumbled upon this while searching how to get info from Terrain def in Zscript. I think at least ability to add custom properties to Terrain definitions so the sounds for footsteps could be defined there and not in separate Language lump that remaps texture name to sound name should be added. I personally would like to have ability to add some custom splashes with their conditions or at least somehow override the function that generates splashes to do something with them in Zscript.