初级玩家

- 贡献度
- 8
- 金元
- 396
- 积分
- 82
- 精华
- 1
- 注册时间
- 2021-5-14
|
太阳帝国二代舰船插件总结
以SIN2 二代科尔为例,战舰携带插件如同LOL游戏装备一样,分为:
属性插件(提供舰船生命值,护甲,反物质);(已完成)
主动技能消耗品插件(额外的技能释放);(有时间再研究)
装备模型插件(增加装备,更换武器);(已完成)
装备模型插件(增加装备,更换武器);
需要文件
entities文件夹
trader_battle_capital_ship.unit(主力舰)
trader_loyalist.player(势力)
unit_item.entity_manifest(插件部件注册表)
trader_ArmedForces.unit_item(你制作好的插件)
localized_text文件夹
zh_cn.localized_text(添加插件说明)
(
"trader_ArmedForces_unit_item_name": "科尔变装插件",
"trader_ArmedForces_unit_item_description": "可更换科尔战列舰的装备,可搭配出无数装备方案,以及武器套件"
)
textures(图片材质)文件夹
trader_ArmedForces_unit_item_hud_icon.png(HUD图片)
trader_ArmedForces_unit_item_hud_icon150.png
trader_ArmedForces_unit_item_hud_icon200.png
trader_ArmedForces_unit_item_research_subject_hud_icon.png(科技树图片)
trader_ArmedForces_unit_item_research_subject_hud_icon150.png
trader_ArmedForces_unit_item_research_subject_hud_icon200.png
trader_ArmedForces_unit_item_research_subject_tooltip_picture.png(科技插件大窗图片)
trader_ArmedForces_unit_item_research_subject_tooltip_picture150.png
trader_ArmedForces_unit_item_research_subject_tooltip_picture200.png
trader_ArmedForces_unit_item_tooltip_picture.png(插件栏图片)
trader_ArmedForces_unit_item_tooltip_picture200.png
.mod_meta_data 文件(本地MOD说明图片配置)
ssss_L.jpg(大窗口图片1280*720像素)
ssss_S.jpg(小窗口图片80*45像素)
泰坦的源数据 (添加额外模型都是一样的方法),此法可大量复制武器点位,进行修改搭配出想要的武器套件
"weapon": "trader_loyalist_titan_beam",
"required_unit_item": "trader_loyalist_titan_unlock_beam_weapon",
"mesh_point": "child.beamturret_mount_0",
"weapon_position": [-223.750427, 146.078369, 964.583862],
修改科尔磁轨炮,添加上方磁轨炮,
{
"weapons": [
{
"weapon": "trader_battle_capital_ship_heavy_gauss",
"required_unit_item": "trader_ArmedForces", (增加条件需要安装此插件解锁磁轨炮台武器)
"mesh_point": "child.gaussturret_mount.0",
"weapon_position": [-0.045448, 106.171692, 96.739502],
"forward": [0.0, 0.0, 1.0],
"up": [0.0, 1.0, 0.0],
"yaw_arc":
{
"min_angle": -180.0,
"max_angle": 180.0
},
"pitch_arc":
{
"min_angle": -40.0,
"max_angle": 10.0
}
},
修改为下方磁轨炮增加自动火炮,复制一段下方磁轨炮的字段修改,weapon为自动火炮,可增加数十个武器
{
"weapon": "trader_battle_capital_ship_medium_autocannon",(原武器为磁轨,可在武器点位上叠加武器,有数量上限)
"required_unit_item": "trader_ArmedForces",
"mesh_point": "child.gaussturret_mount.1",
"weapon_position": [-0.193361, -100.563652, 131.217712],
"forward": [0.0, 0.0, 1.0],
"up": [0.0, -1.0, -0.0],
"yaw_arc":
{
"min_angle": -180.0,
"max_angle": 180.0
},
"pitch_arc":
{
"min_angle": -40.0,
"max_angle": 10.0
}
},
属性插件(提供舰船生命值,护甲,反物质);
需要文件
entities文件夹
trader_battle_capital_ship.unit(主力舰)
trader_loyalist.player(势力)
unit_item.entity_manifest(插件部件注册表)
trader_trader_Stats.unit_item(你制作好的插件)
localized_text文件夹
zh_cn.localized_text(添加插件说明)
(
"trader_Stats_unit_item_name": "科尔属性插件",
"trader_Stats_unit_item_description": "可增加大量的舰体护甲,护盾,外壳值,反物质,武器伤害等数值"
)
textures(图片材质)文件夹 如上类似,修改名字图片类容即可!
.mod_meta_data 文件(本地MOD说明图片配置)
ssss_L.jpg(大窗口图片1280*720像素)
ssss_S.jpg(小窗口图片80*45像素)
修改舰船属性的关键字段就是属性模块,属于比较好改。
首先需要准备好主力舰文件
例如科尔舰体其中的字段
"levels": [
{
"max_hull_points": 3100.0, (外壳模块)
"hull_point_restore_rate": 3.0,
"hull_point_restore_cooldown_duration_after_damage_taken": 60.0,
"hull_crippled_percentage": 1.0,
"max_armor_points": 1710.0, (护甲模块)
"armor_point_restore_rate": 2.4,
"armor_point_restore_cooldown_duration_after_damage_taken": 60.0,
"armor_strength": 120.0, (装甲模块)
"max_shield_points": 1550.0, (护盾模块)
"shield_point_restore_rate": 5.0,
"shield_point_restore_cooldown_duration_after_damage_taken": 20.0,
"shield_burst_restore":
{
"cooldown_duration": 45.0,
"restore_percentage": 0.5
},
"experience_given_on_death": 100.0、
{
"unit_modifiers":
{
"additive_values":
{
"max_antimatter": 405.0,(最大反物质模块)
"antimatter_restore_rate": 1.47 (反物质再生模块)
},
"scalar_values":
{}
},
"weapon_modifiers":
{
"additive_values":
{},
"scalar_values":
{
"damage": 0.225,(武器伤害模块)
"cooldown_duration": -0.09 (武器冷却模块)
}
}
准备好插件文件,关键字段
{
"version": 0,
"item_type": "ship_component",
"hud_icon": "trader_Stats_unit_item_hud_icon", (图片映射)
"tooltip_icon": "trader_Stats_unit_item_hud_icon", (图片映射)
"tooltip_picture": "trader_Stats_unit_item_tooltip_picture", (图片映射)
"name": "trader_Stats_unit_item_name", (图片映射)
"description": "trader_Stats_unit_item_description", (图片映射)
"build_time": 10.0, (建造时间)
"price":(售价)
{
"credits": 1.0,
"metal": 1.0,
"crystal": 1.0
},
"exotic_price": [ (特殊矿物)
{
"exotic_type": "defense",
"count": 0
}],
"required_unit_tags": [ (对应舰船种类)
"capital_ship",
"titan"
],
"max_count_on_unit": 1, (最大数量)
"build_group_id": "defense", (舰船模块种类:防御)
"unit_modifiers": [ (关键字:这里是unit文件对应修改模块,参考主力舰里的模块添加修改即可)
{
"modifier_type": "max_hull_points",
"value_behavior": "additive", (additive 在原有的值上增加)
"values": [100000] (关键值字段一定是"values",不能是value,不然找不到类型;数值一定要包含[100]中括号)
}],
"weapon_modifiers": [
{
"modifier_type": "cooldown_duration",
"value_behavior": "scalar",(scalar 固定值,有可能是替换计算)
"values": [-1],
"tags": [ (类型标签,对应武器)
"gauss","autocannon"]
}]
}
主力舰武器模块
{
"version": 0,
"name": "weapon_name.gauss",
"pitch_speed": 12.0,
"yaw_speed": 12.0,
"pitch_firing_tolerance": 1.0,
"yaw_firing_tolerance": 1.0,
"range": 6250.0, (射程模块)
"cooldown_duration": 12.0, (冷却模块)
"uniforms_target_filter_id": "common_weapon_no_corvette_weapon",
"attack_target_type_groups": [
"heavy_capital",
"defense"
],
"weapon_type": "normal",
"damage_affect_type": "hull_and_armor_and_shields",
"damage": 180.0, (伤害模块)
"penetration": 600.0, (穿透模块,这里会出现小问题)
"tags": [
"gauss",
"physical"
以上插件属于比较好修改的,建筑,星球插件类似;技能插件比较复杂,属于技能类,之后再研究下。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
评分
-
1
查看全部评分
-
|