本帖最后由 lanshad 于 2011-1-2 20:38 编辑
FC2.0 PL-12 PL-8 添加与设置方法
记得J10补丁包里中,PL-8 PL-12来替换R-73 R-77的,今天我介绍的方法是 直接添加并设置导弹的一些参数 添加PL挂载 效果 右下角显示8 12分别代表PL-8 PL-12 以下是添加设置方法 1、在Bazar\missileTable.sht中添加: //PL-8 shape
{
file = "pl-8"; //模型文件 pl-8.lom
life = 1;
// load = { false, false};
fire = { 0, 1};
username = "PL-8";
index = 25;
}
// PL-12
shape
{
file = "pl-12"; //模型文件 pl-12.lom
life = 1;
// load = { false, false};
fire = { 0, 1};
username = "PL-12";
index = 201; //编号要唯一 添加时可以设置大一些 跟后面的添加的代码对应
} 2、在Bazar\missileTable.loc 后面添加:
username = _("PL-8");
username = _("PL-12");
3、在Script\database\Types.lua中添加: missiles[25]
= {wsType_Weapon, wsType_Missile, wsType_AA_Missile} -- PL-8
missiles[201]
= {wsType_Weapon, wsType_Missile, wsType_AA_Missile} -- PL-12“wsType_AA_Missile”中AA是导弹的类型,还有
AA
AS
SA
。。
4、在Script\database\wsTypesTree.lua中添加:
[wsType_AA_Missile] = {
["PL-8"] = PL_8
["PL-12"] = PL_12
},
5、在Script\database\wsTypes.lua中添加: PL_8 = 25; --PL-8 PL_12 = 201; --PL-12 跟Bazar\missileTable.sht中的index一样 否则有可能不显示或显示其他导弹模型 6、在Scripts\database\names.lua中添加: missileTypes["{52A14C36-E1FF-4cba-86AB-0F463119FD01}"] = 25
-- PL-8 missileTypes["{B77374B9-E46D-4dfc-A713-F94533B15112}"] = 201 -- PL_12 7、在Database\db_weapons.lua 中添加 A-to-A launcher("{52A14C36-E1FF-4cba-86AB-0F463119FD01}", "PL-8", _("PL-8"),
{
Picture = "r73.png", //编辑任务 设置挂载显示的小图标
WorldID = "4",
Weight = "90",
Guided = "no",
NatoName = "(PL-8)",
},
{
element("PL-8", 0.000000, 0.000000, 0.000000,
drawarg(1, 1.000000),
drawarg(2, 1.000000)
),
}
), launcher("{B77374B9-E46D-4dfc-A713-F94533B15112}", "PL-12", _("PL-12"),
{
Picture = "r77.png",
WorldID = "4",
Weight = "90",
Guided = "no",
NatoName = "(PL-12)",
},
{
element("PL-12", 0.000000, 0.000000, 0.000000,
drawarg(1, 1.000000),
drawarg(2, 1.000000)
),
}
), 8、在CONFIG\WEAPONS\missiles_data.lua中添加PL导弹的参数: {
Name = PL_8, --PL-8
Escort = 0,
Head_Type = 1, --引导类型??
M = 110.0,
H_max = 20000.0, --最大高度?
H_min = -1, --最小高度?
Diam = 170.0,
Cx_pil = 1.9,
D_max = 12000.0, --最大发射距离
D_min = 300.0, --最小发射距离
Head_Form = 0,
Life_Time = 40.0,
Nr_max = 45,
v_min = 140.0,
v_mid = 400.0,
Mach_max = 3.3,
t_b = 0.0,
t_acc = 2.0,
t_marsh = 3.0,
Range_max = 18000.0,
H_min_t = 1.0,
Fi_start = 0.79,
Fi_rak = 3.14152,
Fi_excort = 1.31,
Fi_search = 0.09,
OmViz_max = 1.05,
warhead = warheads["PL_8"],
exhaust = tail_solid,
X_back = -0.963,
Y_back = -0.09,
Z_back = 0.0,
Reflection = 0.0262,
KillDistance = 7.0,
}, 其它参数 大家可以测试测试 9、在Config\wapons\warheads.lua中添加 warheads["PL_8"] = enhanced_a2a_warhead(24.0); warheads["PL_12"] = enhanced_a2a_warhead(36.0); 10、在Scripts\database\planes\的飞机配置文件添加代码,如su-27.lua中相应2、3、8、9号挂载点分别添加: pylon(2, 0, -2.535000, -0.165000, -6.168000,
{
},
{
{ CLSID = "{52A14C36-E1FF-4cba-86AB-0F463119FD01}" }, --pl-8
{ CLSID = "{B77374B9-E46D-4dfc-A713-F94533B15112}" }, --pl-12
}
),
pylon(3, 0, -1.137000, -0.321000, -4.524000,
{
},
{
{ CLSID = "{52A14C36-E1FF-4cba-86AB-0F463119FD01}" }, --pl-8
{ CLSID = "{B77374B9-E46D-4dfc-A713-F94533B15112}" }, --pl-12
}
), |