This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Adding sound to a model  (Read 1564 times)

larrylaffer

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 145
    • View Profile
[QUESTION] Adding sound to a model
« 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.. 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Adding sound to a model
« Reply #1 on: May 31, 2012, 01:34:54 am »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

larrylaffer

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 145
    • View Profile
Re: [QUESTION] Adding sound to a model
« Reply #2 on: May 31, 2012, 01:43:07 am »
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 :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Adding sound to a model
« Reply #3 on: May 31, 2012, 01:47:42 am »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

larrylaffer

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 145
    • View Profile
Re: [QUESTION] Adding sound to a model
« Reply #4 on: May 31, 2012, 01:52:37 am »
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 :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Adding sound to a model
« Reply #5 on: May 31, 2012, 01:56:56 am »
The timestamp, I guess. As said: Those blocks are like animation blocks, but only half of it. They are missing actual values.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »