阅读:6182回复:15
【源码编译】如何让你的盾牌发光
打开文件ModelObject.cpp
搜索: void CModelObject::CreateWeaponEffect( int nParts, DWORD dwItemKind3, const D3DXMATRIX *pmWorld, int nType, int nLevel, int nLevel2 ) 找到下面的代码: case IK3_SWD : dwSfxRegular = XI_WEA_SWORD01; fOffset = 0.10f; break; case IK3_THSWD : dwSfxRegular = XI_WEA_TWOSWORD01; fOffset = 0.00f; break; case IK3_AXE : dwSfxRegular = XI_WEA_AXE01; fOffset = 0.10f; break; case IK3_THAXE : dwSfxRegular = XI_WEA_TWOAXE01; fOffset = 0.10f; break; case IK3_YOYO : dwSfxRegular = XI_WEA_YOYO01; fOffset = 0.00f; break; case IK3_KNUCKLEHAMMER : dwSfxRegular = XI_WEA_KNUCK01; fOffset = 0.10f; break; case IK3_CHEERSTICK : dwSfxRegular = XI_WEA_STICK01; fOffset = 0.00f; break; case IK3_STAFF : dwSfxRegular = XI_WEA_STAFF01; fOffset = 0.00f; break; case IK3_CROSSBOW : dwSfxRegular = XI_WEA_CROSSBOW01; fOffset = 0.10f; break; case IK3_BOW : dwSfxRegular = XI_WEA_BOW01; fOffset = 0.00f; break; case IK3_WAND : dwSfxRegular = XI_WEA_WAND01; fOffset = 0.10f; break; case IK3_MAGICBARUNA : dwSfxRegular = XI_WEA_MAGICBOOK01;fOffset = 0.00f; break; case IK3_ZEMBARUNA : dwSfxRegular = XI_WEA_FORCEZEM01; fOffset = 0.00f; break; 添加下面的代码: case IK3_SHIELD : dwSfxRegular = XI_WEA_FORCEZEM01; fOffset = 0.00f; break; *我使用了XI_WEA_FORCEZEM01 sfx 因为我不知道别的会不会出现问题^^
*你可以使用同样的方法添加其他部分的发光 ^^ 图片:737431d7868b9daaa044df0f.jpg |
|
100% |
沙发#
发布于:2012-10-09 09:52
表示看不懂 、
|
|
|
板凳#
发布于:2012-10-10 01:07
a
|
|
地板#
发布于:2012-10-10 01:07
a
|
|
4楼#
发布于:2012-10-10 01:07
a
|
|
5楼#
发布于:2012-10-10 10:51
1
|
|
6楼#
发布于:2012-10-10 10:52
1
|
|
7楼#
发布于:2012-10-10 10:52
1
|
|
8楼#
发布于:2012-11-06 08:15
额~
|
|
9楼#
发布于:2012-11-06 10:42
|
|
10楼#
发布于:2012-11-06 11:06
|
|
11楼#
发布于:2012-11-14 11:58
|
|
12楼#
发布于:2012-12-08 16:14
表示是山里人,看不出来
|
|
13楼#
发布于:2016-02-25 00:59
看看看看
|
|
14楼#
发布于:2016-04-25 15:36
|
|
上一页
下一页