- 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_PlayAttackTaunt
andK_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...
charvoicelib
is the main command. It accepts up to two arguments, first of which is required.- First argument is sound type. Required. Valid inputs:
attack1
orattack2
will play the specific attack sound.a
or justattack
will execute theK_PlayAttackTaunt
recreation instead, playing a random one.boost1
orboost2
will play the specific boost sound.b
or justboost
will execute theK_PlayBoostTaunt
recreation instead, playing a random one.hurt1
orhurt2
will play the specific hurt sound.h
or justhurt
will 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: