- What permissions do you give others to modify and/or maintain your submission?
- Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
This script eases access to sounds that are used by each individual character currently loaded.
- Store a sound as a local for use later.
- Example: storing Sonic's gloat.
local songloat = CharVoiceLib.GetSkinSFX(skins["sonic"], "gloat")
- Example: storing Sonic's gloat.
- Get a table of the character's sounds.
- Includes recreations of
K_PlayAttackTauntandK_PlayBoostTaunt, as well as a version for the hurt sounds too, with randomization and all.- Example: play a random hurt sound of Knuckles on a player object.
CharVoiceLib.PlayHurtSound(p.mo, skins["knuckles"])
- If you don't want to load the script to use these, you are free to copy the recreations to your own script and modify them as you wish.
- Example: play a random hurt sound of Knuckles on a player object.
- Play a character's sound from any object.
- If you want Amy to pity you from all the item boxes, this will work too! You will have to have her loaded, however...
charvoicelibis the main command. It accepts up to two arguments, first of which is required.- First argument is sound type. Required. Valid inputs:
attack1orattack2will play the specific attack sound.aor justattackwill execute theK_PlayAttackTauntrecreation instead, playing a random one.boost1orboost2will play the specific boost sound.bor justboostwill execute theK_PlayBoostTauntrecreation instead, playing a random one.hurt1orhurt2will play the specific hurt sound.hor justhurtwill mimic the two aforementioned functions, playing a random hurt sound.- Example: play the second boost sound of your skin.
charvoicelib boost2
- Second argument is skin source for the sound. Optional. Uses internal skinnames.
- This will play the requested sound type, but of a specific skin instead.
- Example: play either of Metal Sonic's boosting sounds.
charvoicelib hurt metalsonic
- If you are having trouble with finding out the internal name for a skin, use SkInfo.
- First argument is sound type. Required. Valid inputs:
