{

    //角色通用QTE脚本

    "AbilityName" : "Player_QTE",

    "AbilityStacking":"Unique",



    "AbilityMixins" : 

    [

        {

            "$type" : "MoleMole.AvatarQTEMixin",

            "SwitchOutIndex" : -1,

            "SwitchInIndex" : 10,

            "ExSwitchInIndex" : 20,

            "QTEEnterRange" : 7,

            "QTEExitRange" : 10,

            "QTELockTargetID" : "QTE_Tick_LockTarget_01",

            "NeedOverridePosRot" : true,

            "OverridePosRot" : 

            {

                "CoordsOption" : "Relative",

                "NeedRaycastGround" : true,

                "TargetOption" : 

                {

                    "$type" : "MoleMole.ConfigPosRotReferTarget",

                    "OffsetReferTarget" : "Target",

                    "BackupOffsetReferTarget" : "Self",

                },

                "Offset" : 

                {

                    "PositionOffset" : {"x":1.5, "y":0.0, "z":-2.0},

                    "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "BackupPositionOffset" : {"x":1.5, "y":0.0, "z":-2.0},

                    "BackupAngleOffset" : {"x":0.0, "y":0.0, "z":0.0},



                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : false,

                }

            },



            "ExQTEOverridePosRot" : 

            {

                "CoordsOption" : "Relative",

                "NeedRaycastGround" : true,

                "TargetOption" : 

                {

                    "$type" : "MoleMole.ConfigPosRotReferTarget",

                    "OffsetReferTarget" : "Target",

                    "BackupOffsetReferTarget" : "Self"

                },

                "Offset" : 

                {

                    "PositionOffset" : {"x":1.5, "y":0.0, "z":-2.0},

                    "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "BackupPositionOffset" : {"x":1.5, "y":0.0, "z":-2.0},

                    "BackupAngleOffset" : {"x":0.0, "y":0.0, "z":0.0},



                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : false

                }

            },



            "ConditionGroup" : 

            {

                "$type" : "MoleMole.QTEConditionGroup",

                "QTEConditionList" :

                [

                    {

                        "$type" : "MoleMole.QTEConditionStunReset",

                    },

                ]

            },

        },



        {

            "$type" : "MoleMole.ListenQTEMixin",

            "ListenQTEWindowOpened" : 

            [

                {

                    "$type" : "MoleMole.RemoveModifier",

                    "ModifierName" : "QTECloseModifier",

                    "Target" : "Self",

                },



                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "QTEOpenModifier",

                    "Target" : "Self",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByIsLocalAvatar",

                            "IsLocalAvatar" : true,

                            "Target" : "Self",

                        },

                        {

                            "$type" : "MoleMole.ByQTEConditionType",

                            "Type" : "Trigger",

                            "Target" : "Self",

                        },

                    ]

                },

                

                //根据目标类型，发送不同的音效事件

                {

                    "$type" : "MoleMole.FireAudio",

                    "AudioPattern" : "QTE_Begin_Normal",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByIsLocalAvatar",

                            "IsLocalAvatar" : true,

                            "Target" : "Self",

                        },

                        {

                            "$type" : "MoleMole.ByQTEConditionType",

                            "Type" : "Trigger",

                        },

                        {

                            "$type" : "MoleMole.ByMonsterStrengthType",

                            "CompareType" : "Equal",

                            "StrengthType" : "Normal",

                            "Target" : "Target",

                        },

                    ]

                },

                {

                    "$type" : "MoleMole.FireAudio",

                    "AudioPattern" : "QTE_Begin_Elite",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByIsLocalAvatar",

                            "IsLocalAvatar" : true,

                            "Target" : "Self",

                        },

                        {

                            "$type" : "MoleMole.ByQTEConditionType",

                            "Type" : "Trigger",

                        },

                        {

                            "$type" : "MoleMole.ByMonsterStrengthType",

                            "CompareType" : "Equal",

                            "StrengthType" : "Elite",

                            "Target" : "Target",

                        },

                    ]

                },

                {

                    "$type" : "MoleMole.FireAudio",

                    "AudioPattern" : "QTE_Begin_Boss",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByIsLocalAvatar",

                            "IsLocalAvatar" : true,

                            "Target" : "Self",

                        },

                        {

                            "$type" : "MoleMole.ByQTEConditionType",

                            "Type" : "Trigger",

                        },

                        {

                            "$type" : "MoleMole.ByMonsterStrengthType",

                            "CompareType" : "Equal",

                            "StrengthType" : "Boss",

                            "Target" : "Target",

                        },

                    ]

                },

                {

                    "$type" : "MoleMole.FireAudio",

                    "AudioPattern" : "QTE_Begin",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByIsLocalAvatar",

                            "IsLocalAvatar" : true,

                            "Target" : "Self",

                        },

                        {

                            "$type" : "MoleMole.ByQTEConditionType",

                            "Type" : "Trigger",

                            "Target" : "Self",

                        },

                        {

                            "$type": "MoleMole.ByNot",

                            "Target" : "Self",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByOr",

                                    "Target" : "Self",

                                    "Predicates" : 

                                    [

                                        {

                                            "$type" : "MoleMole.ByMonsterStrengthType",

                                            "CompareType" : "Equal",

                                            "StrengthType" : "Normal",

                                            "Target" : "Target",

                                        },

                                        {

                                            "$type" : "MoleMole.ByMonsterStrengthType",

                                            "CompareType" : "Equal",

                                            "StrengthType" : "Normal",

                                            "Target" : "Target",

                                        },

                                        {

                                            "$type" : "MoleMole.ByMonsterStrengthType",

                                            "CompareType" : "Equal",

                                            "StrengthType" : "Normal",

                                            "Target" : "Target",

                                        },

                                    ]

                                },

                            ],

                        },

                    ]

                },

            ],

            

            "ListenQTEWindowCanceled" : 

            [

                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "QTECloseModifier",

                    "Target" : "Self",

                },

            ],



            "ListenQTEWindowClosed" : 

            [

                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "QTECloseModifier",

                    "Target" : "Self",

                },

            ],

        },

    ],



    "Modifiers" : 

    {

        "QTEOpenModifier" : 

        {

            "ModifierStacking" : "MultipleRefresh",

            "Duration" : 1.0,



            "OnAdded" :

            [

                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "CommonEventModifier",

                },

                {

                    "$type" : "MoleMole.CameraZoomAction",

                    "ZoomConfigKey" : "QTE_Trigger_CamZoom_Additive_01",

                },

                {

                    "$type" : "MoleMole.CameraStretchAction",

                    "StretchConfigKey" : "QTE_Trigger_CamStretch_Additive_01",

                }

            ],

        },



        "QTECloseModifier" : 

        {

            "ModifierStacking" : "MultipleRefresh",

            "Duration" : 0.1,

            "IgnoreTimeScale" : false,



            "OnAdded" :

            [

                // //--------------------

                // //锁定相机测试

                // {

                //     "$type" : "MoleMole.CameraOverrideLookAtEndAction",

                //     "Target" : "Self",

                // },

                // {

                //     "$type" : "MoleMole.CameraOverrideFollowEndAction",

                //     "Target" : "Self",

                // },

                // {

                //     "$type" : "MoleMole.CameraLookAtOffsetEndAction",

                // },

                // //锁定相机测试

                // //--------------------

                {

                    "$type" : "MoleMole.FireAudio",

                    "AudioPattern" : "QTE_Stop",

                },

                {

                    "$type" : "MoleMole.InterruptTimeSlowAction",

                    "TargetKey" : "QTE_Trigger_TimeSlow_01",

                },

                {

                    "$type" : "MoleMole.CameraZoomEndAction",

                    "EndCameraZoomKey" : "QTE_Trigger_CamZoom_Additive_01",

                },

                {

                    "$type" : "MoleMole.CameraStretchEndAction",

                    "EndCameraStretchKey" : "QTE_Trigger_CamStretch_Additive_01",

                },

                {

                    "$type" : "MoleMole.InterruptScreenEffectAction",

                    "EffectType" : "RadialBlur",

                    "TargetKey" : "QTE_Trigger_RadialBlur_01",

                },

                {

                    "$type" : "MoleMole.InterruptScreenEffectAction",

                    "EffectType" : "Vignette",

                    "TargetKey" : "QTE_Trigger_Vignette_01",

                },

                {

                    "$type" : "MoleMole.InterruptScreenEffectAction",

                    "EffectType" : "ColorAdjustments",

                    "EffectKey" : "QTE_Trigger_ColorAdjustments_01",

                },

                {

                    "$type" : "MoleMole.ActSingleShakeDataModeAction",

                    "SingleMode" : false,

                },

            ],



            "OnRemoved" :

            [

                {

                    "$type" : "MoleMole.RemoveModifier",

                    "ModifierName" : "CommonEventModifier",

                    "Target" : "Self",

                },

            ]

        },



        "CommonEventModifier":

        {

            "ModifierStacking" : "MultipleRefresh",

            "Duration" : -1.0,



            "OnAdded" :

            [

                //--------------------

                //锁定相机测试

                // {

                //     "$type" : "MoleMole.CameraOverrideLookAtAction",

                //     "Target" : "Self",

                //     "overrideLookatPoint" : "MiddlePoint",

                //     "durationTime" : -1,

                //     "ingoreTimeScale" : true,

                // },

                // {

                //     "$type" : "MoleMole.CameraOverrideFollowAction",

                //     "Target" : "Self",

                //     "overrideFollowPoint" : "MiddlePoint",

                //     "durationTime" : -1,

                //     "ingoreTimeScale" : true,

                // },

                // {

                //     "$type" : "MoleMole.CameraLookAtOffsetAction",

                //     "Target" : "SelfAttackTarget",

                //     //"Target" : "Custom",

                //     //"CustomKey" : "Test_AbilityTargetting_01",

                //     "CameraLockTargetKey" : "QTE_CamLock_01",

                // },

                //锁定相机测试

                //--------------------



                //根据音频需求一拆三，QTE_Begin_Normal/Elite/Boss

                // {

                //     "$type" : "MoleMole.FireAudio",

                //     "AudioPattern" : "QTE_Begin",

                // },

                {

                    "$type" : "MoleMole.TimeSlowByConfigKeyAction",

                    "ConfigKey" : "QTE_Trigger_TimeSlow_01",

                    "IsGlobal" : true,

                },

                {

                    "$type" : "MoleMole.ProcessScreenEffectAction",

                    "EffectType" : "RadialBlur",

                    "EffectKey" : "QTE_Trigger_RadialBlur_01",

                },

                {

                    "$type" : "MoleMole.ProcessScreenEffectAction",

                    "EffectType" : "Vignette",

                    "EffectKey" : "QTE_Trigger_Vignette_01",

                },

                {

                    "$type" : "MoleMole.ProcessScreenEffectAction",

                    "EffectType" : "ColorAdjustments",

                    "EffectKey" : "QTE_Trigger_ColorAdjustments_01",

                },

                {

                    "$type" : "MoleMole.SetupUIAction",

                    "SetupTag" : "Player_QTE_SetupTag",

                    "Priority" : 1,

                    "IgnoreFadeAnimation" : true,

                    "HideUITags" : 

                    [

                        "InLevelMainPage",

                    ],

                    "ShowUITags" : 

                    [

                        "QTEBtnPanel",

                    ],

                },

                {

                    "$type" : "MoleMole.InputMuteAction",

                    "Tag" : "Player_QTE_InputMute",

                    "CharacterMoveMute" : false,

                    "CharacterSkillMute" : false,

                    "CharacterSwitchMute" : false,

                    //"CharacterQTEMute" : false,

                    "CharacterBagMute" : false,

                    "CameraMoveMute" : false,

                },

                {

                    "$type" : "MoleMole.AttachModifier",

                    "ModifierName" : "InvincibleBuffModifier",

                    "Target" : "Self",

                },

                {

                    "$type" : "MoleMole.ActSingleShakeDataModeAction",

                    "SingleMode" : true,

                },

            ],



            "OnRemoved" :

            [

                {

                    "$type" : "MoleMole.InterruptSetupUIAction",

                    "SetupTag" : "Player_QTE_SetupTag",

                    "IgnoreFadeAnimation" : false,

                },

                {

                    "$type" : "MoleMole.InterruptInputEnableAction",

                    "Tag" : "Player_QTE_InputMute"

                }

            ],

        },



        "InvincibleBuffModifier" :

        {

            "ModifierStacking" : "MultipleRefresh",

            "Duration" : -1,

            "IgnoreTimeScale" : false,

            "Buff" :

            {

                "BuffID": 121001,

                "IsOverrideDuration": true

            },

        }

    }

}