HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit's automatic sound (in death animation, for example)

09-07-2015, 09:35 AM#1
iNfraNe
Hey guys,

Does anyone know of a way to stop a unit from making a sound when playing a specific animation, such as its death animation?

I tried overwriting the sound by importing an empty .wav file, but to no avail.

Any other methods than removing the event from the model file?

Thanks,
09-07-2015, 10:39 AM#2
Rao Dao Zao
The death sounds are triggered in the model, by EventObjects. If you load a model in Magos', you'll see the EventObject with a name a bit like SNDxDFOO, which would be for Footman Death sound (SND being a sound trigger, DFOO being for Death FOOtman). You can find out what all the keys mean in the SLK files, but I think Magos' does some matching to file names for you so you can get more descriptive hints (can't check it here, Magos' won't work on my office machine).

Since they are done in the model they might not load in the right order for map imports to override. I'd have thought they would though, I'm sure I've done stuff with death sounds -- pretty sure I used some for sound triggers in my custom models for Y4 (though again, can't verify at work).

The only way to be sure is to edit the model to remove the sound event.
09-07-2015, 11:25 AM#3
iNfraNe
Hey RDZ, thanks!
Quote:
Originally Posted by Rao Dao Zao
You can find out what all the keys mean in the SLK files
Which SLK in particular are we talking about here? :)

I'm trying to override the HeroDreadLordDeath.wav sound. Perhaps it exists at a different path besides Units\Undead\HeroDreadLord\ as well...

EDIT:

oh ffs. I just made a typo in the path (and I checked it several times). Overwriting the sound works! :)
09-08-2015, 05:11 PM#4
Rao Dao Zao
Haha!

For future reference, the codes are in UI\SoundInfo\AnimLookups.slk -- they come with labels rather than sound file paths, I think you then would have had to look those up elsewhere.
09-09-2015, 07:43 AM#5
iNfraNe
haha. Great. Well, magos' gave also the relative sound path (i.e., just the filename, because its in the same folder as the model, I suppose).