mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-29 09:35:48 +00:00
Fix file encoding to UTF-8
This commit is contained in:
parent
0729147e89
commit
f5768f650c
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
local this_config = ScriptLib.GetContextGadgetConfigId(context)
|
local this_config = ScriptLib.GetContextGadgetConfigId(context)
|
||||||
local this_group = ScriptLib.GetContextGroupId(context)
|
local this_group = ScriptLib.GetContextGroupId(context)
|
||||||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local defs = {
|
local defs = {
|
||||||
player_energy = "AVATAR_ASTER_SCORE"
|
player_energy = "AVATAR_ASTER_SCORE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
local group_id=ScriptLib.GetContextGroupId(context)
|
local group_id=ScriptLib.GetContextGroupId(context)
|
||||||
if group_id ~= nil and group_id ~= -1 then
|
if group_id ~= nil and group_id ~= -1 then
|
||||||
if param1==0 then
|
if param1==0 then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
local stateChain={
|
local stateChain={
|
||||||
{0101,0102,0103,0104,0105,0106,0107,0108,0109},
|
{0101,0102,0103,0104,0105,0106,0107,0108,0109},
|
||||||
{0201,0202,0203,0204,0205,0206,0207,0208,0209},
|
{0201,0202,0203,0204,0205,0206,0207,0208,0209},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
-- abilityRequest
|
-- abilityRequest
|
||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
--ScriptLib.PrintLog("##param1="..param1)
|
--ScriptLib.PrintLog("##param1="..param1)
|
||||||
-- 获取机关当前状态
|
-- 获取机关当前状态
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
--[[======================================
|
--[[======================================
|
||||||
|| filename: GadgetMarkAction
|
|| filename: GadgetMarkAction
|
||||||
|| owner: zijun.ma
|
|| owner: zijun.ma
|
||||||
|| description: 3.0开始应用的通用物件MarkAction
|
|| description: 3.0开始应用的通用物件MarkAction
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnBeHurt(context, element_type, strike_type, is_host)
|
function OnBeHurt(context, element_type, strike_type, is_host)
|
||||||
-- 获取机关当前状态
|
-- 获取机关当前状态
|
||||||
local state = ScriptLib.GetGadgetState(context)
|
local state = ScriptLib.GetGadgetState(context)
|
||||||
if element_type == ElementType.Fire and state == GadgetState.Default then
|
if element_type == ElementType.Fire and state == GadgetState.Default then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
|
|
||||||
local ret = ScriptLib.SetGadgetState(context, param1)
|
local ret = ScriptLib.SetGadgetState(context, param1)
|
||||||
if 0 ~= ret then
|
if 0 ~= ret then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
if param1~=nil then
|
if param1~=nil then
|
||||||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||||||
ScriptLib.SetGadgetState(context, param1)
|
ScriptLib.SetGadgetState(context, param1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
local stateChain={
|
local stateChain={
|
||||||
{0101,0102,0103,0104,0105,0106,0107,0108,0109},
|
{0101,0102,0103,0104,0105,0106,0107,0108,0109},
|
||||||
{0201,0202,0203,0204,0205,0206,0207,0208,0209},
|
{0201,0202,0203,0204,0205,0206,0207,0208,0209},
|
||||||
|
@ -8,15 +8,15 @@ function OnClientExecuteReq(context, param1, param2, param3)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 定时器回调
|
-- 定时器回调
|
||||||
function OnTimer(context, now)
|
function OnTimer(context, now)
|
||||||
-- 获取机关当前状态
|
-- 获取机关当前状态
|
||||||
local state = ScriptLib.GetGadgetState(context)
|
local state = ScriptLib.GetGadgetState(context)
|
||||||
if state ~= GadgetState.Default then
|
if state ~= GadgetState.Default then
|
||||||
-- 获取当前状态的开始时间
|
-- 获取当前状态的开始时间
|
||||||
local state_begin_time = ScriptLib.GetGadgetStateBeginTime(context)
|
local state_begin_time = ScriptLib.GetGadgetStateBeginTime(context)
|
||||||
if now >= state_begin_time + _delay then
|
if now >= state_begin_time + _delay then
|
||||||
-- 如果启动时间超过启动持续时间,则转换为Default状态
|
-- 如果启动时间超过启动持续时间,则转换为Default状态
|
||||||
ScriptLib.SetGadgetState(context, GadgetState.Default)
|
ScriptLib.SetGadgetState(context, GadgetState.Default)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
|
|
||||||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||||||
if param1 == 0 then
|
if param1 == 0 then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
|
|
||||||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||||||
ScriptLib.SetGadgetState(context, param1)
|
ScriptLib.SetGadgetState(context, param1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
--联机状态下,由于未被及时卸载时被交互的保险
|
--联机状态下,由于未被及时卸载时被交互的保险
|
||||||
if true == ScriptLib.CheckIsInMpMode(context) then
|
if true == ScriptLib.CheckIsInMpMode(context) then
|
||||||
ScriptLib.PrintContextLog(context, "#SetGadgetState_BanMP# Is in MP mode, refuse state change.")
|
ScriptLib.PrintContextLog(context, "#SetGadgetState_BanMP# Is in MP mode, refuse state change.")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
|
|
||||||
--当物件被设为Default状态时,将物件设为可交互
|
--当物件被设为Default状态时,将物件设为可交互
|
||||||
if param1 == 0 then
|
if param1 == 0 then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
|
|
||||||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||||||
if param1 == 0 then
|
if param1 == 0 then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
|
|
||||||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||||||
if param1 == 0 then
|
if param1 == 0 then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function OnClientExecuteReq(context, param1, param2, param3)
|
function OnClientExecuteReq(context, param1, param2, param3)
|
||||||
if param1 == 202 then
|
if param1 == 202 then
|
||||||
ScriptLib.SetGroupVariableValue(context, "SplitterShootType", 202)
|
ScriptLib.SetGroupVariableValue(context, "SplitterShootType", 202)
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function SetToysCD_MD_Success(context)
|
function SetToysCD_MD_Success(context)
|
||||||
return ScriptLib.SetWidgetClientDetectorCoolDown(context, 220009, true)
|
return ScriptLib.SetWidgetClientDetectorCoolDown(context, 220009, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local default_time = 18
|
local default_time = 18
|
||||||
|
|
||||||
function OnTimer(context, now)
|
function OnTimer(context, now)
|
||||||
local state_begin_time = ScriptLib.GetGadgetStateBeginTime(context)
|
local state_begin_time = ScriptLib.GetGadgetStateBeginTime(context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user