发布模型有好多人不会添加装备吧,看见今天有空的时间就上来看看这类型的贴吧!!
先找服务端上这4个文件!
defineItem.h
mdlDyna.inc
propItem.txt
propItem.txt.txt
我就以添加一个物品的代码,明不明白就要看个人吸收能力!
先打开propItem.txt.txt 拉到最后的位置,添加以下代码
IDS_PROPITEM_TXT_012272 罗曼英之书
IDS_PROPITEM_TXT_012273
打开第二个propItem.txt同样拉到最后位置添加以下代码!
15 II_WEA_BOOK_BOKROMAIN IDS_PROPITEM_TXT_012272 1 1 IK1_ARMOR IK2_ARMOR IK3_SHIELD JOB_PSYCHIKEEPER_HERO TRUE = = 2890736 6570000 100 180 HD_ONE 4 PARTS_SHIELD = 0 = = 130 200 = 1 = = = 1 1 _NONE 0 0 0 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = BARUNA_D = = = = = = 0 0 0 0 0 0 = = SND_ITEM_DROPDING1 = = = = = = = = = 120 = = = """Itm_WeaBokRomain.dds""" 0 """""" IDS_PROPITEM_TXT_012273
第三步打开defineItem.h拉到最后的位置添加以下代码
//V16新武器
#define II_WEA_BOOK_BOKROMAIN 60000
第四步,打开mdlDyna.inc这个文件比较重要,他里在的模型是分类的,不是乱来添加就可以,大家细心查找
你要添加的物品与其他同类的模型的地方上添加你的代码。。。。添加以下代码
//V16新武器
"WeaBokRomain" II_WEA_BOOK_BOKROMAIN MODELTYPE_MESH "" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
就以上为这样添加物品,大家细心看清楚吧。。。。。哈哈
中华游戏网 cnyouw.cn