Modcraft - The community dedicated to quality WoW modding!
Content creation => Modelling and Animation => Topic started by: larrylaffer on May 31, 2012, 01:32:12 am
-
Hello,
I have an issue with a mount:
When you use the /mountspecial emote, it doenst make any sound.
I need to know how to add sounds to a model when it does an particular event (emote).
I understand that i need to modify the events structure of the model with M2 Template...
I also read the Event structure in WoWDev. (http://www.pxr.dk/wowdev/wiki/index.php?title=M2/WotLK#Events). however i dont understand what i need to change in order to add a sound to the creature in a certain event.
If someone know how to do this, please tell me.
Regards
-
In this case a simple $SND event with the SoundEntries id as data should be enough. Add a timestamp to the correct animation, when It should play.
-
If the $SND is not in the event list, i need to create it? (i ask cuz in other models with the sound, the SND event is not present).
Were goes the SouendEntry ID in the structure? in the uint32 data field?
What value i need to add in the timestamp offset? Can i use the offset of another event or i need to create a new one? (i dont know anything about timestamp...)
What value i need to add in the animation? (i know wich animation is)
Regards and thanks for the quick answer :)
-
Yes. There might be a special event for mount sounds, you may look for that at other mounts.
Yes.
The timestamps are an animation block but only having half of it. It has the same rules like all others.
See AnimationData.dbc. Most likely MountSpecial.
-
K, thanks for the info :), i will try to add the sound.
About the last question, i express myself wrong. I dint mean what value i need to add in the animation, but wich value i need to add in the subanimblock_t_substruct of the timestamp structure. This substruct is a list that represents all the animations, each one with a nvalue and a offset. I want to know what value i need to add here :P
Regards and again, thanks :)
-
The timestamp, I guess. As said: Those blocks are like animation blocks, but only half of it. They are missing actual values.