WoTにサウンドバンクを読み込ませる方法

WoTにサウンドバンクを読み込ませる

import BigWorld
import WWISE
from SoundGroups import SoundGroups

#res_mods/0.9.14.1/audioww/のtest.bnkを読み込ませる
bankname = 'test.bnk'
def _SoundGroups_preloadSoundGroups(self, arenaName):
    orig = orig_preloadSoundGroups(self, arenaName)
    from Account import PlayerAccount
    isHangar = isinstance(BigWorld.player(), PlayerAccount)
    if isHangar:
        WWISE.WG_loadBanks(bankname,'', True)
    else:
        WWISE.WG_loadBanks(bankname,'', False)
    return orig
orig_preloadSoundGroups = SoundGroups.preloadSoundGroups
SoundGroups.preloadSoundGroups = _SoundGroups_preloadSoundGroups

#第六感のサウンドを任意に変更
def _SoundGroups_checkAndReplace(self, event):
    if event == 'lightbulb':
        return 'buka'
    else :
        return orig_CAR(self, event)
orig_CAR = SoundGroups.checkAndReplace
SoundGroups.checkAndReplace = _SoundGroups_checkAndReplace

2017/06/29追記

今はかんたんに読み込んでイベントに上書きできるようになったようで

koreanrandom.com