主题:【源码编译】如何让你的盾牌发光 作者:烛天丶 时间:2013-08-21 22:05 |
打开文件ModelObject.cpp 搜索:3 s$ f1 O! H2 y. f, ^4 k+ F ; 6 W6 ~0 L; ^ void CModelObject::CreateWeaponEffect( int nParts, DWORD dwItemKind3, const D3DXMATRIX *pmWorld, int nType, int nLevel, int nLevel2 )( G1 p. g9 z% e- p$ | + O; g0 a! R! v2 Q; h+ y+ O 找到下面的代码: case IK3_SWD : dwSfxRegular = XI_WEA_SWORD01; fOffset = 0.10f; break; case IK3_THSWD : dwSfxRegular = XI_WEA_TWOSWORD01; fOffset = 0.00f; break;( |- T. i) P" j5 G' D case IK3_AXE : dwSfxRegular = XI_WEA_AXE01; fOffset = 0.10f; break; case IK3_THAXE : dwSfxRegular = XI_WEA_TWOAXE01; fOffset = 0.10f; break;' }; ~3 l+ f2 J' `7 o. |+ s" n/ G case IK3_YOYO : dwSfxRegular = XI_WEA_YOYO01; fOffset = 0.00f; break;$ S$ ] N( d0 I4 u1 * m 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;6 c# R; I2 O: F; : i! _ case IK3_BOW : dwSfxRegular = XI_WEA_BOW01; fOffset = 0.00f; break; case IK3_WAND : dwSfxRegular = XI_WEA_WAND01; fOffset = 0.10f; break;; j* C8 P+ Q/ u5 {2 }# v' l4 ` case IK3_MAGICBARUNA : dwSfxRegular = XI_WEA_MAGICBOOK01;fOffset = 0.00f; break;; |7 C( C8 c4 {& m4 p/ @' E case IK3_ZEMBARUNA : dwSfxRegular = XI_WEA_FORCEZEM01; fOffset = 0.00f; break; 4 D' X E; o5 [0 O & M+ r4 e0 p3 ` 5 l* ~. l2 {6 P 添加下面的代码:! B+ 8 {& x: T% F3 J, ]; J( ]- H ( h1 S1 `$ - ~( u1 q 0 z- R: p# T3 T# f/ Z case IK3_SHIELD : dwSfxRegular = XI_WEA_FORCEZEM01; fOffset = 0.00f; break; *我使用了XI_WEA_FORCEZEM01 sfx 因为我不知道别的会不会出现问题^^. Q. P8 l N! g# f$ m* . I* |7 I *你可以使用同样的方法添加其他部分的发光 ^^ |
1楼:开心小龙(2013-08-22 06:32) |
来张图看看 |
2楼:八稚女(2013-08-22 06:56) |
这是个什么游戏 |
3楼:lansky、(2013-08-23 17:52) |
这个很好。求高亮, |
4楼:46247288(2013-08-25 13:51) |
好东西. |
5楼:pxhpcj(2013-09-01 07:17) |
是个什么游戏 |
6楼:jian4892(2013-10-29 23:39) |
用户被禁言,该主题自动屏蔽! |