- Joined
- May 31, 2019
- Messages
- 150
Recently, I discovered a bug in my project where if the player has Unit Responses turned off in their settings, Zerg units will still play their 'ready' sound when they hatch, since they are 'hatched' via a function rather than trained like a normal unit.
So I thought maybe the issue was that the sounds played were in the wrong channel. All sounds used are defined in my modified UnitAckSounds.slk. I went about setting the channels to 2, 3, and 4 (all used by war3 unit response sounds in UnitAckSounds.slk), as well as setting the channel of the sound handles created in my jass script to the same values. This did not solve the issue.
I wonder if the Unit Responses setting is just hard-coded to only work with normal usage of unit acknowledgment sounds? Is there any way to get sounds played via JASS to respect the player's settings?
So I thought maybe the issue was that the sounds played were in the wrong channel. All sounds used are defined in my modified UnitAckSounds.slk. I went about setting the channels to 2, 3, and 4 (all used by war3 unit response sounds in UnitAckSounds.slk), as well as setting the channel of the sound handles created in my jass script to the same values. This did not solve the issue.
I wonder if the Unit Responses setting is just hard-coded to only work with normal usage of unit acknowledgment sounds? Is there any way to get sounds played via JASS to respect the player's settings?