-
Notifications
You must be signed in to change notification settings - Fork 10
/
entry.lua
134 lines (115 loc) · 3.4 KB
/
entry.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
local FM_dll=nil
-- Test Collision only
local FM_dll= "A-6E_Intruder_FM.dll"
--模组入口
local self_ID = "A-6E" --定义模组名称,全局使用
declare_plugin(self_ID,
{
--基础定义区
installed = true,
displayName = _("A-6E Intruder"), --模组显示名称
developerName = _("Indigo Simulation"), --开发组名称
dirName = current_mod_path,
fileMenuName = _("A-6E"),
update_id = "A-6E",
version = "0.1.0", --当前迭代版本号
state = "installed",
info = _("A-6E is a WIP mod of DCS"), --描述信息
encyclopedia_path = current_mod_path..'/Encyclopedia',
binaries =
{
FM_dll
},
Skins =
{
{
name = _("A-6E"),
dir = "Theme"
},
},
Missions =
{
{
name = _("A-6E"),
dir = "Missions",
},
},
LogBook =
{
{
name = _("A-6E"),
type = "A-6E",
},
},
InputProfiles =
{
["A-6E"] = current_mod_path .. '/Input',
},
})
--------------------------------------------------------------------------------
-- 挂载 3d 模型目录和 贴图 文件目录
mount_vfs_texture_path (current_mod_path.."/Cockpit/Resources/Model/Textures")
mount_vfs_texture_path (current_mod_path.."/Cockpit/Textures/CPT_TEX")
-- 挂载 模型
mount_vfs_model_path (current_mod_path.."/Shapes")
mount_vfs_model_path (current_mod_path.."/Shapes/Loads") -- add weapon, pod and tanks
mount_vfs_liveries_path (current_mod_path.."/Liveries")
-- mount_vfs_liveries_path (current_mod_path.."/Theme/ME")
mount_vfs_texture_path (current_mod_path.."/Theme/ME")
mount_vfs_texture_path (current_mod_path.."/Textures")
mount_vfs_texture_path (current_mod_path.."/Textures/A-6E")
mount_vfs_texture_path (current_mod_path.."/Textures/A-6E-CPT")
mount_vfs_texture_path (current_mod_path.."/Textures/A-6E-WEAPON")
---------------------------------------------------------------------------------------
-- Option Cockpit operationnel, HUD partiel
test_susp = {
{
wheel_radius = 0.45,
arg_post = 0,
arg_amortizer = 1,
arg_wheel_rotation = 76,
arg_wheel_yaw = 2,
collision_shell_name = "WHEEL_F",
},
{
wheel_radius = 0.77,
arg_post = 3,
arg_amortizer = 4,
arg_wheel_rotation = 77,
arg_wheel_yaw = -1,
collision_shell_name = "WHEEL_R",
},
{
wheel_radius = 0.77,
arg_post = 5,
arg_amortizer = 6,
arg_wheel_rotation = 77,
arg_wheel_yaw = -1,
collision_shell_name = "WHEEL_L",
},
}
local FM
dofile(current_mod_path.."/suspension.lua")
if FM_dll then
FM=
{
[1] = self_ID,
[2] = FM_dll,
center_of_mass = {0, -0.2, 0},--{5.8784 - 4.572, -0.7883, 0},
-- the moment_of_inertia is following the data from nasa
-- reverse the axis of y and z
moment_of_inertia = {43580.057, 144223.779, 109659.913, - 2000},
suspension = suspension_data,
}
else
FM=nil
end
make_flyable('A-6E', current_mod_path..'/Cockpit/Scripts/', FM, current_mod_path..'/comm.lua')
-- 加载额外lua文件
dofile(current_mod_path.."/A-6E.lua")
--dofile(current_mod_path.."/smoke.lua")
-- 加载视角
dofile(current_mod_path.."/Views.lua")
make_view_settings('A-6E', ViewSettings, SnapViews)
make_aircraft_carrier_capable('A-6E',{"AircraftCarrier","AircraftCarrier With Tramplin","AircraftCarrier With Catapult"})
plugin_done()