使命召唤4地图编辑器初级使用指南(单人任务)
cs:source吧
全部回复
仅看楼主
level 14
hzm654321 楼主

首先是下载使命4mod工具地址:
网盘链接
下载完毕后,打开压缩包,你会发现readme.txt中有如下文字。
---------readme.txt---------------------
------------------
INSTALLATION:
------------------
To install, unzip the files to your Call of Duty 4 - Modern Warfare directory. This is where you installed the game to. The default location is "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare".
Once unzipped you will want to make shortcuts to the following applications:
[gamepath]\bin\CoD4CompileTools\CoD4CompileTools.exe
[gamepath]\bin\MoDBuilder.exe
These are the only two applications that you should have shortcuts to, or run directly from explorer. The other exe files not listed above are not intended to be ran directly because they require special working directory and/or command line options. CoD4CompileTools.exe contains propper icons to launch those applications.
If you plan on using Maya to export models and animation, please refer to the following link for maya setup instructions:
http://www.infinityward.com/wiki/index.php?title=Maya
---------readme.txt---------------------
翻译过来:
把这写文件解压到你的使命召唤4安装目录,默认为” C:\Program Files\Activision\Call of Duty 4 - Modern Warfare”。
解压之后,运行以下两个程序:
[gamepath]\bin\CoD4CompileTools\CoD4CompileTools.exe
[gamepath]\bin\MoDBuilder.exe
注:如果你是默认安装的话,即以下两个程序:
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\ bin\CoD4CompileTools\CoD4CompileTools.exe
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\ bin\MoDBuilder.exe
以上是要点。
运行
运行CoD4CompileTools.exe,单击”Applications”,你将会看到以下画面。
单击”Launch Level Editor”以启动地图编辑器,你将看到如下画面。
试着在俯视图中拖曳一个矩形,调整它的大小,并为它选择贴图。
单击这里一次,将改变摄像机模式为右键旋转视角,滚轮前进后退。
右键单击已被选定的物体,选择”Deselect all”来取消选择。
单击这里来选择视图角度,并添加几面墙壁,做成一个小屋子,但是不要太小。
阶段性成果:
下面添加玩家起始点。
并将高度调整到地面以上。
然后,取消选定的玩家起始点,并在地图上放置敌人。
放几个随你便,当然,别忘调整敌人的高度,以使他们的脚在地面以上。
2013年03月27日 10点03分 1
level 14
hzm654321 楼主
然后放置武器,选择单机游戏里存在的武器,也就是说,后缀不带”mp”的。
添加武器后,选中武器,按N键,选择”SUSPENDED”
然后就不用管这个窗口了,按N隐藏他也行,最小化也行。
然后保存。
脚本
下面编写任务脚本。
进入[gamepath]\ \raw\maps,新建一个.gsc文件,命名为yourmapname.gsc,即名字与你存地图时的名字一样。
添加如下代码:
#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");
main()
{
maps\_load::main();
level.player takeallweapons();
level.player giveWeapon ("mp5_silencer_reflex");
level.player giveWeapon ("colt45");
level.player giveWeapon ("flash_grenade");
level.player switchToWeapon ("colt45");
}
这段代码的作用是:在游戏开始时给你mp5sd+reddot、colt.45手枪和闪光弹,并切换到colt.45,你可以按照自己的兴趣修改它。
csv文件
下面编写csv文件。
进入[gamepath]\ zone_source目录,打开yourmapname.csv,如果没有,就建立一个。
写入如下内容。
ignore,code_post_gfx
ignore,common
col_map_sp,maps/new.d3dbsp
rawfile,maps/new.gsc
localize,new
sound,common,new,!all_sp
sound,generic,new,!all_sp
sound,voiceovers,new,!all_sp
sound,requests,new,!all_sp
weapon,sp/m4_silencer_acog
weapon,sp/mp5_silencer_reflex
weapon,sp/colt45
weapon,sp/flash_grenade
xmodel,viewmodel_base_viewhands
rawfile,options_graphics.cfg
当然,你自己在地图上或者gsc文件中添加的武器,必须以” weapon,sp/武器名”的形式写入该文件。武器名称可以在 [gamepath] \raw\weapons\sp找到,其中每一个文件对应着一种武器,直接使用文件名即可。
编译地图
回到cod4compiletools界面,选择你的地图名,依次单击1, 2, 3, 5。
设置如图。
如果在测试过程中遇到任何问题,请打包后在试,很可能它们已被解决。
打包
提取:
[gamepath]\raw\maps\yourmapname .d3dbsp
[gamepath]\raw\maps\yourmapname .gsc
将其放入一个文件夹下,并将该文件夹命名为maps,压缩该文件夹为zip文件,改名为yourmapname.iwd。
发布时,需要连同[gamepath]\zone\english下yourmapname.ff一起发布。
老秃驴
2013年03月27日 10点03分 2
level 14
NICE,顶一个
2014年02月09日 14点02分 3
1