tdauth / wowr

Warcraft III: Reforged funmap World of Warcraft Reforged.
https://wowreforged.org
8 stars 0 forks source link

Add custom soundsets to heroes #758

Closed tdauth closed 3 weeks ago

tdauth commented 2 years ago

System: https://www.hiveworkshop.com/threads/barad%C3%A9s-unit-sound-sets-1-0.350901/

Use the custom soundset system and start with High Elf Footman since it is not too big.

How to play talk animation without hiding stuff: https://www.hiveworkshop.com/threads/playing-portrait-talk-animation-without-hiding-hp-and-mana-or-showing-message.350900/

https://www.hiveworkshop.com/conversations/portrait-frame.352069/

https://www.hiveworkshop.com/threads/getmainselectedunit.325337/

Store the type of portrait animations with an extra key:

Disadvantages:

Advantages:

Unit sound sets:

Heroes of the Storm has many different soundsets: https://heroesofthestorm.fandom.com/wiki/Gul%27dan/Quotes

tdauth commented 11 months ago

https://github.com/Retera/WarsmashModEngine/blob/8f359a97f4796df90475358e7763c7e723537454/resources/Scripts/melee.jui#L47C2-L47C70

tdauth commented 11 months ago

Update to https://www.hiveworkshop.com/threads/getmainselectedunit.325337/#post-3597445 so it supports savegames.

tdauth commented 10 months ago

The system should provide sound sets and let them be shared between unit types and units:

function AddUnitSoundSet takes string filePrefix returns integer
function EnableUnitSoundSetForUnitType takes integer unitTypeId, integer unitSoundSet returns nothing
function DisableUnitSoundSetForUnitType takes integer unitTypeId, integer unitSoundSet returns nothing
function GetUnitSOundSetForUnitType takes integer unitTypeId returns integer
function EnableUnitSoundSetForUnit takes unit whichUnit integer unitSoundSet returns nothing
function DisableUnitSoundSetForUnit takes  unit whichUnit, integer unitSoundSet returns nothing
function GetUnitSoundSetForUnit takes unit whichUnit returns integer
tdauth commented 9 months ago

Support BlzGetUnitSkin.

tdauth commented 3 weeks ago

Done.