找回密码
 注册
X系列官方授权正版
搜索
查看: 3727|回复: 6

[原创] 星际之狼3的一点小发现

[复制链接]
发表于 2010-3-16 23:22:34 | 显示全部楼层 |阅读模式
本帖最后由 alanwhite 于 2010-3-16 23:36 编辑

昨天闲来无事翻了一下data  里面东西挺多的 细细翻来发现
\Data\Game下面的Carcasses.xml原来是存放的各种战机的数据  嘿嘿 可以自己改战机的数值了

<Interceptor name="Trident_pl0">                      -----------战机名称
  <short_name>#M_Name_Trident</short_name>  
  <hint>#M_Hint_Trident</hint>
  <short_desc>#M_SDesc_Trident</short_desc>
  <long_desc>#M_LDesc_Trident</long_desc>
  <mesh_name>Trident_player</mesh_name>
  <flat_image>Trident_player</flat_image>
  <hit_points>580</hit_points>                          -----------装甲 就是血啦
  <mass>1505</mass>
  <disable_trade/>
  <cost>105000</cost>                                    -----就是售价啦有兴趣全部替换成<cost>1</cost>全星系一元店开张啦
  <technology/>                                                      -----------什么科技
  <EPR>1.2</EPR>
  <explosion_script>Fighter</explosion_script>
  <work_sound/>
  <silence/>
  <max_energy>450</max_energy>                   ----------盾  别改太变态了
  <energy_restore>2</energy_restore>
  <max_speed>9</max_speed>                          ----------速度 最好只改到10以内
  <maneurability>9</maneurability>                     ----------操控 最好只改到10以内
  <steering_power>175</steering_power>
  <sensor_resolution>0.38</sensor_resolution>
  <sensor_length>135</sensor_length>                  ----------雷达 随便啦
  <threat>4.5</threat>
  <mapping_name>trident_shop</mapping_name>   ----------调用的战机配置脚本
<HolderProperties>
   <big_guns/>
   <small_guns>3</small_guns>
   <rockets>1</rockets>
   <systems>4</systems>
   <turrets/>
   <gk_guns/>
   <gk_turrets/>
  </HolderProperties>                                           ----------战机配置 3/1/4  随便改 总和不能超8
  
<engine_sound>Engine-Class3.wav</engine_sound>
  <engine_start_sound>Start_engine_2a.wav</engine_start_sound>
  <level>4</level>                                                ---------- 战机等级   最高驾驶等级

如果要改战机的配置的话 加炮位  加system 又需要修改 \Data\TEXTURE\Interface\Carcass\Slots 下的对应战机配置脚本
比如上面的<mapping_name>trident_shop</mapping_name>   要修改的话 就要去改\Data\TEXTURE\Interface\Carcass\Slots\trident_shop.ini

[image]
name=ships03
tuv=ships
index=4
[slot1]                                                   ----------------一号位
type=SmallGun                                       ----------------轻型炮 BigGun就是重型炮
refpoint=right                                         ----------------右边
image_coord=11 4                                  ---------------应该是表示图形吧
text_coord=11 106                                ---------------文字描述
text_aligment=LEFT                               ----------------文字描述的方位
[slot2]                                                  ----------------二号位
type=RocketModule                                ----------------导弹
refpoint=center                                      ----------------中间
image_coord=11 126
text_coord=96 167
text_aligment=LEFT
[slot3]
type=SmallGun
refpoint=left
image_coord=11 248
text_coord=11 228
text_aligment=LEFT
[slot4]
type=SystemModule                                ------------系统挂件
refpoint=system1                                   -------------系统内部
image_coord=111 4
text_coord=196 66
text_aligment=LEFT
[slot5]
type=SystemModule
refpoint=system2
image_coord=111 248
text_coord=196 289
text_aligment=LEFT
[slot6]
type=SystemModule
refpoint=system3
image_coord=419 4
text_coord=415 66
text_aligment=RIGHT
[slot7]
type=SystemModule
refpoint=system4
image_coord=419 126
text_coord=500 106
text_aligment=RIGHT
[slot8]
type=SystemModule
refpoint=system5
image_coord=419 248
text_coord=415 289
text_aligment=RIGHT

呵呵  1炮7系统的战机你见过没  就是这么改出来的
改一个敌人不能使用的战机  然后在
\Data\Scripts\InitTeamScript.script游戏开局的脚本中添加
mothership:AddShipToInventory("你所改战机名称", 10);
开始施虐吧~!!


ps:改以前请备份,不然改不回来,游戏玩不了别怨我,呵呵!

评分

参与人数 1好评 +1 收起 理由
江左 + 1 小白路过

查看全部评分

发表于 2010-3-17 08:17:25 | 显示全部楼层
那么,战机最多是8个插槽?

母舰怎样的
回复

使用道具 举报

发表于 2010-3-17 09:07:43 | 显示全部楼层
这虽说是不错- -
但是哪个才是敌人都没有的战斗机呢
还有如果增加了系统位  炮位  敌人是不是也会加武器  系统上去?
回复

使用道具 举报

发表于 2010-3-17 09:22:21 | 显示全部楼层
3楼的高
回复

使用道具 举报

发表于 2010-3-17 10:07:08 | 显示全部楼层
3楼说的问题只有改了数据以后在游戏里看看了。
回复

使用道具 举报

 楼主| 发表于 2010-3-17 20:30:57 | 显示全部楼层
今天抽空再看看了脚本ShipDescriptions.xml
放的就是npc用的战机脚本
应该npc都是用的固定配置的战机
我们随意改上面的脚本都应该没问题

\Data\TEXTURE\Interface\Carcass\Slots下面的战机配置文件其实就是图形界面的配置文件
如果搞错的话 就用不了
回复

使用道具 举报

发表于 2010-3-17 20:57:02 | 显示全部楼层
_pl0就代表玩家能买的机体  这个试验过了
我想添加炮位但是该怎么确定炮位的位置呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

Archiver|手机版|小黑屋|DeepTimes.NET 太空游戏站