includeReference("EngineData/Helpers/helpers.ilu") includeReference("EngineData/Helpers/feedback_helpers.ilu") includeReference("EngineData/Helpers/sound_base.ilu") -- Structure needed to use sound SET and VFX like they're already declared component = { SoundComponent_Template = {soundList = {}}, FxBankComponent_Template= {Fx = {}} } params = { NAME="FeedbackFxManager_Template", FeedbackFxManager_Template = { soundDescriptors = {}, FxDescriptors = {}, actors = {}, busList= { { buses = { actorType = "Rayman", bus = "RAY_FBK"}}, { buses = { actorType = "Globox", bus = "GLO_FBK"}}, { buses = { actorType = "Teensie", bus = "TEE_FBK"}}, { buses = { actorType = "Barbara", bus = "BAR_FBK"}}, } } } -- OTHER FILES ---------------------------------- includeReference("EngineData/Feedback/GameMaterials.frt") -- FEEDBACKS ------------------------------------ --addFeedbackArchetype("Rayman","DefaultActor","hit_weak",{name="Impact_Ray_Weak",sounds={{VAL="Impact_Ray_Weak"}},particles={{VAL="FX_hit_weak_01"},{VAL="FX_hit_weak_02"},{VAL="FX_hit_weak_03"},{VAL="FX_hit_weak_04"},{VAL="FX_hit_weak_05"}},playContact=0,fxStopOnEndAnim=0,fxPlayOnce=0,fxEmitFromBase=0,fxUseActorSpeed=0,fxUseActorOrientation=0,fxBoneName="",fxUseBoneOrientation=0,owner="Rayman"}) -- SOUND DESCRIPTORS ---------------------------- --includeReference("EngineData/Feedback/Sound/SET_Impact_Ray_Weak.ilu") -- FX DESCRIPTORS ------------------------------- --includeReference("EngineData/Feedback/FX/FX_hit_weak.ilu") -- Gather all descriptors where they're supposed to be placed appendTable(params.FeedbackFxManager_Template.soundDescriptors, component.SoundComponent_Template.soundList) appendTable(params.FeedbackFxManager_Template.FxDescriptors, component.FxBankComponent_Template.Fx)