阅读:5961回复: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% |