Resource icon

[Open Assets] Character Dub API 2.2

  • Fix synch failure bug
  • sfx_s1c9 and sfx_slip should no longer play when "hit em" or "hurt" sound is played
  • Fix spb sound warning
  • Fix attack sounds being played when holding orbinaut/banana/jawz and one of those items gets hit
  • Fix attack sound not playing when using thunder shield
  • Fix hurt sound not playing when player get hit by invincibility
  • Logic has been totally reworked, now instead of replacing sounds dub makes kart not use any default voices at all and handles that itself. So, dub_soundoffhack is not needed anymore
  • Add DUB_XRegisterDub, which is new extra way for adding dub that allows custom entries such as: spb - line played when chased by spb, steal - line played when stealing item, and stole - plays when your item get stolen (see adding dub spoiler)
  • There can be multiple sound replacements specified for single skin sound. For that, instead of one string with sound name there can be array of such strings. Example: {"sfx_mydub1", "sfx_mydub2", "sfx_mydub3"}
  • Flags SF_X8AWAYSOUND and SF_NOINTERRUPT are applied to gloat sounds
  • Skin name automatically gets converted to lower case when registering dub
  • Fix few cases when one player's skin sounds get replaced by other player's selected dub
Add config file. Config is autosaved in luafiles/dub.cfg. Data is written automatically, so it is not intended to be edited manually, since any comments will be discarded
  • Cool!
Reactions: AnimeSonic
  • Function DUB_GetSkinSound and all other functions based on it now respect dub_enabled cvar value
  • If you using a lot of power items in short period of time, gloat line will not restart (though that won't usually happen without kartdebugitem and kartdebugamount, but i decided to fix that, just in case)
  • Now addon will leave a warning if older version of it detected
  • Return KL_CaveStoryDubs.pk3 example addon back because when i posted 1.1 update i forgot to attach it 🥴
  • Fixed few "typos"
  • Added global lua functions: DUB_GetSkinSound, DUB_GetWinSound, DUB_GetLoseSound, etc. In case other mods would want to play character line globally (like win/lose phrase) and they want to support custom dubs
Back
Top