添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -310.2, z = -221.2 },
size = { x = 586.7, z = 583.7 },
born_pos = { x = -42.432, y = 0.500, z = 60.698 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -20,
city_id = 3,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 50070 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -310.2, z = -221.2 }, max = { x = 276.5, z = 362.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,59 @@
{
"sceneId": 50070,
"routes": [
{
"localId": 3,
"name": "Platform_003",
"type": "OneWay",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 20.0,
"y": 0.5,
"z": 34.0
},
"waitTime": 1.0,
"targetVelocity": 5.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 45.0,
"z": 0.0
},
"rotRoundReachRounds": 1,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 20.0,
"y": 0.5,
"z": 34.0
},
"waitTime": 0.0,
"targetVelocity": 10.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 1,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundWaitRounds": 0,
"reachStop": true
}
]
}
]
}
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 250070004, refresh_id = 1, pos = { x = -50.050, y = 0.500, z = 106.895 } }
}
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 250070004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70330134, pos = { x = -53.620, y = 0.500, z = 102.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70330141, pos = { x = -53.620, y = 0.500, z = 110.362 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70360001, pos = { x = -53.835, y = 0.500, z = 102.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4007, gadget_id = 70330158, pos = { x = -53.562, y = 0.500, z = 106.332 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4008, gadget_id = 70330135, pos = { x = -53.570, y = 1.173, z = 106.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4009, gadget_id = 70330158, pos = { x = -48.048, y = 0.500, z = 106.385 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 31 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004003, name = "GADGET_CREATE_4003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4003", action = "action_EVENT_GADGET_CREATE_4003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4004, 4007, 4008, 4009 },
regions = { },
triggers = { "GADGET_CREATE_4003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_4003(context, evt)
if 4007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}
@@ -0,0 +1,76 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -22.4079628,
"y": 0.5,
"z": 97.23962
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 45.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -20.11449,
"y": 0.5,
"z": 99.92019
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 45.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": -15.72031,
"y": 0.5,
"z": 103.925858
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 45.0,
"arriveRange": 2.0
}
]
}
]