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

[求助] 修改装备,无法在新开始游戏中调用出来

[复制链接]
发表于 2011-8-21 12:12:13 | 显示全部楼层 |阅读模式
我在\Data\Game目录中的Modules文件中添加了一个新的武器,内容如下:
<TurretGK name="GMAAA">
<short_name>#M_Name_HGK3</short_name>
<hint>#M_Hint_HGK3</hint>
<short_desc>#M_SDesc_HGK3</short_desc>
<long_desc>#M_LDesc_HGK3</long_desc>
<mesh_name>GK2_Heavy</mesh_name>
<flat_image>GK1_var3</flat_image>
<hit_points>10000</hit_points>
<mass>5</mass>
<disable_trade/>
<cost>350000</cost>
<technology/>
<attach_type>ALL SHIPS</attach_type>
<recharge_time>1</recharge_time>
<viewing_angle>50</viewing_angle>
<dispersion>0.1</dispersion>
<min_distance>1</min_distance>
<max_distance>220</max_distance>
<rate_of_fire>1</rate_of_fire>
<burst_count>1</burst_count>
<BulletParams>
<damage>1600</damage>
<bullet_length>2.5</bullet_length>
<speed>80</speed>
<damage_type>IMPACT</damage_type>
<graph_type>BIG</graph_type>
<sfx_index>2</sfx_index>
</BulletParams>
</TurretGK>

并在Data\Scripts目录中的InitTeamScript中文件中也将此新武器加入了,
mothership:AddModuleToInventory("GMAAA", 100);
但在新开台游戏后,此装备还是看不见,是什么原因?求指点~!!




发表于 2011-8-23 16:25:06 | 显示全部楼层
本帖最后由 thezohars 于 2011-8-23 16:26 编辑

同求。。。我改了个导弹也不出现啊。。。
回复

使用道具 举报

发表于 2011-8-23 16:55:46 | 显示全部楼层
<LaserGun name="PLC3">                                武器类型,是激光类武器,模板名字PLC3
                <short_name>#M_Name_PLC3</short_name>        
                <hint>#M_Hint_PLC3</hint>
                <short_desc>#M_SDesc_PLC3</short_desc>
                <long_desc>#M_LDesc_PLC3</long_desc>
                <mesh_name>M809</mesh_name>
                <flat_image>M809</flat_image>
                <hit_points>10000</hit_points>                武器的耐久,装备在船上,如果受到该耐久最大值的打击,武器可能会损坏
                <mass>5</mass>
                <disable_trade/>
                <cost>200000</cost>                        缺省价格
                <technology/>
                <attach_type/>
                <recharge_time>3</recharge_time>        连续发射间隔时间,如果改小,就可以达到高速发射
                <viewing_angle>20</viewing_angle>        最大瞄准夹角,此类武器都需要转动飞船,面对敌人才能开火,这个角度就是你面对敌人和你火炮指向的最大夹角*2
                <dispersion>0.1</dispersion>                命中离散度,越小,就越精准
                <min_distance>2</min_distance>                最近有效射程
                <max_distance>80</max_distance>                最大有效射程,如果要将射程改为180,则简单将此值修改成180即可
                <rate_of_fire>1</rate_of_fire>                发射速率,不建议修改
                <burst_count>4</burst_count>                猝发数量,此类武器会一次急促发射几发,该值代表一次猝发的发射数量
                <damage_type>LASER</damage_type>
                <damage>65</damage>                        单发伤害值
                <graph_type>LASER</graph_type>
                <sfx_index>5</sfx_index>
        </LaserGun>
增加初始登陆的时候带的装备
        打开X:\Star Wolves 3 - Civil War\Data\Scripts\InitTeamScript.script 文件,找到下述代码:
        MothershipPilot=CreatePilot("BasePilot");
        AddPilotToPlayer(MothershipPilot);
        mothership:AssignPilot(MothershipPilot);
        MothershipFlight=PlayerGroup:CreateFlight(PLAYER_MOTHERSHIP);
        MothershipFlight:AddShip(mothership);
        
在上述这段文字后面,添加如下代码:
        mothership:AddShipToInventory("Butcher_MKK", 5);        在母舰的货仓里面添加我们刚刚改的“屠夫战机”5架,Butcher_MKK要和船只模板文件里面名字对应。
        mothership:AddModuleToInventory("PLC3A", 12);                在母舰的货仓里面添加我们刚刚改的强力M-809 RAGE武器12把
        mothership:AddModuleToInventory("ECM4", 20);                在母舰的货仓里面添加最强的被动反导弹装备20个
        mothership:AddModuleToInventory("AMS4", 4);                在母舰的货仓里面添加最强的主动反导弹装备4个
        mothership:AddModuleToInventory("GunAmp2", 20);        在母舰的货仓里面添加最好的战机用武器加速装备20个,就是60%加速的那种
        mothership:AddModuleToInventory("BS_ShAmp4", 6);        在母舰的货仓里面添加母舰用护盾增强装置6个,就是3000护盾的那个。
回复

使用道具 举报

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

本版积分规则

关闭

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

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