3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 40356|回复: 32
打印 上一主题 下一主题

[原创] 作弊MOD4.88替换单位教程贴!

  [复制链接]

7

主题

100

帖子

178

积分

中级玩家

Rank: 3Rank: 3

贡献度
0
金元
1776
积分
178
精华
0
注册时间
2015-6-21
跳转到指定楼层
主题
发表于 2015-7-17 17:14 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
看到有人需要这个,所以就写了这个教程
其实替换单位什么的真的不难。
比起作弊MOD4.88之前的简直简单的多了。
简单的修改一下还是没问题的。




先说一下原版的作弊MOD4.88
所有的代码都在目录下
CheatsMod v4.88\resource\map\cheatsmod          cheat.mi 这一个文件
用记事本很快就能打开。如果觉得看起来很乱的话,就用 Notepad++ 这个程序打开


最简单的修改就是装甲,飞机这一类。
随便找个自己想要替换的单位,首先,在文本里搜索那个单位的名称,比如,pz4h
点“查找下一个”,很轻松的就搜索到那串代码,(步兵,装甲,飞机这一类修改是一样的)
{"cheat_ger_tank_medium_pz4h"
                                {state hidden}
                                {text "mission/singlecheats/PzKpfw IV H"} (只修改蓝色区域文字,这里是在召唤菜单显示出单位的名称)
                                {image pz4h}  (只修改蓝色区域文字,这里是指召唤菜单该单位的图片)
                                {hint ""}         
                                {count -1}
                                {score 0}
                                {delay 0}
                                {eventEnd "cheatmod/spawn/tank/5"}
                                {waypoint "3001"}
                        }
然后继续往下搜索:(这一类修改,装甲类,飞机类是一样的。)
                                        {"spawn"
                                                {entity "pz4h"}   只修改蓝色区域文字,这里就是指召唤出来的单位了,就算不改上面的那些,也可以召唤出来你想要的坦克,不过上面的最好也改一下,等二次修改的时候方便,召唤的时候你也知道是什么单位= =
                                                {waypoint "3000"}
                                        }

                                                {function "tankgetsfilled"}
                                        }
                                        {"event"
                                                {event "cheatmod/spawn/tank/5"}
                                                {mode reset}
                                                {delay 0}
                                        }
                                        {"trigger"
                                                {name "cheats/tanks/german/medium/5"}
                                        }
                                }

有些麻烦的是步兵单位的替换,因为他不仅有可以单独召唤,也可以小队规模召唤,而且还要修改单位的装备。
我随便输入了一个单位的名称,比如 elite
{Human "mp/usa/elite" 0x8082 (每个国家都会有这类单位。所以区分你修改的是哪个国家的就看这一行,首先看到了,蓝色文字中。mp指的是单位所在文件夹,usa就是美国,elite就是单位种类。紫色区域指的是该单位的代码,你搜索代码就会看到该单位的装备或小队信息
        {Tags "c_elite" "cheat_infantry_usa" "hidden" "cheat_delete" "cheat_infantry_spawn" 0x8082}(队伍)

{Inventory 0x8082
                {box
                        {clear}
                        {item "m1_carbine" filled {cell 0 0}{user "hand_right"}}
                        {item "rifle" "ammo" 25 {cell 4 0}}
                        {item "rifle" "ammo" 25 {cell 5 0}}
                        {item "rifle" "ammo" 25 {cell 4 1}}
                        {item "rifle" "ammo" 25 {cell 5 1}}
                        {item "rifle" "ammo" 25 {cell 0 2}}
                        {item "rifle" "ammo" 25 {cell 1 2}}
                        {item "bandage" 5 {cell 2 2}}
                        {item "m61" "grenade" {cell 4 2}}
                        {item "m61" "grenade" {cell 5 2}}
                        {item "m61" "grenade" {cell 0 3}}
                        {item "m61" "grenade" {cell 1 3}}
                        {item "n73at" "grenade" {cell 2 3}}
                        {item "n73at" "grenade" {cell 4 3}}
                        {item "smoke" "grenade" {cell 0 4}}
                        {item "smoke" "grenade" {cell 2 4}}
                        {item "helmet_airborne_usa" {cell 4 4}{user "head"}}(装备)
                }
                {Position -1041.79 1136.69}
                {xform zl -89.46}
                {FsmState "stand"}
        }

修改步兵单位的时候,就拿冷战的单位说明一下,冷战的步兵单位的位置在Cold War\resource\set  multiplayer.pak 这个文件,好压打开后

multiplayer.pak\breed  会有mp mp2的文件夹,里面就是步兵的内容 例如在 mp2/usa/文件夹下有 elite 这个单位 直接改一下上述代码那些篮子区域就行了 只需要mp改成

mp2
其实吧,这里修改的只是单位的能力值和模型,然而你就算修改了这一类保存之后,去游戏中召唤出来之后还是拿着二战的武器。。所以说,如果你修改步兵不在乎兵模能力的话,直接修改这个单位的装备就可以,上面的橙色的代码就是指的装备,然而我也只是一个萌新,直接查看该单位的装备数据并不知道怎么替换
        {inventory
                {item "bandage" 10}
                {item "molotov_coctail grenade"}
                {item "c4_bomb"}
                {item "m4s" filling "556nato ammo" 30}
                {item "556nato ammo" 270}
                {item "pg weapon" filling "mortar pd a ammo" 1}
                {item "mortar pd a ammo" 6}
                {in_hands 3}
        }
}
                {box
                        {clear}
                        {item "m1_carbine" filled {cell 0 0}{user "hand_right"}}
                        {item "rifle" "ammo" 25 {cell 4 0}}
                        {item "rifle" "ammo" 25 {cell 5 0}}
                        {item "rifle" "ammo" 25 {cell 4 1}}
                        {item "rifle" "ammo" 25 {cell 5 1}}
                        {item "rifle" "ammo" 25 {cell 0 2}}
                        {item "rifle" "ammo" 25 {cell 1 2}}
                        {item "bandage" 5 {cell 2 2}}
                        {item "m61" "grenade" {cell 4 2}}
                        {item "m61" "grenade" {cell 5 2}}
                        {item "m61" "grenade" {cell 0 3}}
                        {item "m61" "grenade" {cell 1 3}}
                        {item "n73at" "grenade" {cell 2 3}}
                        {item "n73at" "grenade" {cell 4 3}}
                        {item "smoke" "grenade" {cell 0 4}}
                        {item "smoke" "grenade" {cell 2 4}}
                        {item "helmet_airborne_usa" {cell 4 4}{user "head"}}(装备)
        

以上两种代码不一样,自己也不敢贸然替换,只能用地图编辑器打开一个地图,往上面放置步兵单位,然后保存数据,打开该地图保存的数据,找到装备信息
{box
                        {clear}
                        {item "bandage" 5 {cell 0 0}}
                        {item "bandage" 5 {cell 2 0}}
                        {item "molotov_coctail" "grenade" {cell 4 0}}
                        {item "c4_bomb" {cell 0 1}}
                        {item "m4s" filled {cell 2 1}{user "hand_right"}}
                        {item "556nato" "ammo" 30 {cell 0 3}}
                        {item "556nato" "ammo" 30 {cell 1 3}}
                        {item "556nato" "ammo" 30 {cell 2 3}}
                        {item "556nato" "ammo" 30 {cell 3 3}}
                        {item "556nato" "ammo" 30 {cell 4 3}}
                        {item "556nato" "ammo" 30 {cell 5 3}}
                        {item "556nato" "ammo" 30 {cell 0 4}}
                        {item "556nato" "ammo" 30 {cell 1 4}}
                        {item "556nato" "ammo" 30 {cell 2 4}}
                        {item "pg" "weapon" filled {cell 3 4}}
                        {item "mortar" "pd" "a" "ammo" {cell 0 5}}
                        {item "mortar" "pd" "a" "ammo" {cell 1 5}}
                        {item "mortar" "pd" "a" "ammo" {cell 2 5}}
                        {item "mortar" "pd" "a" "ammo" {cell 3 5}}
                        {item "mortar" "pd" "a" "ammo" {cell 4 5}}
                        {item "mortar" "pd" "a" "ammo" {cell 5 5}}
                        {item "ciras_backpack1" {cell 0 6}{user "body"}}
                        {item "mich_us3" {cell 2 6}{user "head"}}
                }
然后就能和原版的装备数据进行替换了。。。。
这样该单位的武器装备就变为现代的了。

不得不说,步兵类的的确是很麻烦,上述步兵修改说写的可能很难看懂。。。嘛、、、不过就这样吧。有时间再补充,这次图都懒得放了0.0

回复

使用道具 举报

0

主题

52

帖子

78

积分

初级玩家

Rank: 2

贡献度
0
金元
775
积分
78
精华
0
注册时间
2019-5-19
舒服的沙发
发表于 2021-10-31 18:31 | 只看该作者
555555555555555555555555555555555555555555
回复 支持 反对

使用道具 举报

0

主题

508

帖子

640

积分

超级玩家

Rank: 5Rank: 5

贡献度
0
金元
6398
积分
640
精华
0
注册时间
2013-10-14
硬硬的板凳
发表于 2024-12-1 00:52 | 只看该作者
有些自改的作弊MOD汉化不了,在singlecheats.lng文件里添加个兵种新单位{”Tankman Commander“  “坦克指挥官”}不知是英文不对还是排序不对,但在游戏里能召出添加的这个单位但不显中文  鼠标悬停在这个兵种单位上显示哪个国家哪个国家的兵种
回复 支持 反对

使用道具 举报

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

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-14 15:48 , Processed in 0.034439 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表