That's true if you want to add NEW sounds, but you can reuse old sounds.
For selection sounds: Check out the "UnitGameplay2DScripts" table (makes no sense to me why unit selection sounds would be there). The columns are UnitType, SelectionSound, and FirstSelectionSound. You'll probably want AS2D_SELECT_INFANTRY for your SelectionSound and AS2D_BIRTH_INFANTRY for your FirstSelectionSound.
For combat sounds: Check out the "ArtDefine_UnitMemberCombatWeapons" table. The last two columns are WeaponTypeTag and WeaponTypeSoundOverrideTag. You'll want BULLET for both.
For selection sounds: Check out the "UnitGameplay2DScripts" table (makes no sense to me why unit selection sounds would be there). The columns are UnitType, SelectionSound, and FirstSelectionSound. You'll probably want AS2D_SELECT_INFANTRY for your SelectionSound and AS2D_BIRTH_INFANTRY for your FirstSelectionSound.
For combat sounds: Check out the "ArtDefine_UnitMemberCombatWeapons" table. The last two columns are WeaponTypeTag and WeaponTypeSoundOverrideTag. You'll want BULLET for both.
Maybe I'm confused what you're asking. Are you saying you don't have any sounds when you activate your test mod to see your unit ingame? If that's the case: Every now and then I'll have a modded unit not play sounds; but then after I quit the game and try again, it'll be fine. If it's a consistent problem, my previous post was indicating where you might need to look if you forgot to add the references to one of those entries I mentioned. You didn't include the mod you made to add the unit to the game, so I'm unsure if you left something out or not.
If you're instead asking how to package sounds with the unit, then 3335d's response was right. Whoever uses your unit in their mod will end up using stock sounds (defined in the places I mentioned) when they create their mod, so there's no need to include them.
Yes, and I put Patnum333's Iroquois Infantry in the same mod and the sounds worked fine.
If that's the case: Every now and then I'll have a modded unit not play sounds; but then after I quit the game and try again, it'll be fine. If it's a consistent problem, my previous post was indicating where you might need to look if you forgot to add the references to one of those entries I mentioned. You didn't include the mod you made to add the unit to the game, so I'm unsure if you left something out or not.
I appreciate your response. It is consistent so I will have to look in the files mentioned.
If you're instead asking how to package sounds with the unit, then 3335d's response was right. Whoever uses your unit in their mod will end up using stock sounds (defined in the places I mentioned) when they create their mod, so there's no need to include them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.