: g/ Q& G1 M+ Y+ h# Q6 S pModel->MakeSWDForce( PARTS_RWEAPON, pItemProp->dwItemKind3, (dwOption & MOP_HITSLOW) ? TRUE : FALSE, dwColor, m_fAniSpeed ); Z2 w5 U! d% o pModel->MakeSWDForce( PARTS_LWEAPON, pItemProp->dwItemKind3, (dwOption & MOP_HITSLOW) ? TRUE : FALSE, dwColor, m_fAniSpeed );" k- b6 D5 p! ~+ u
}Change the values after D3DCOLOR_ARGB ( XXX, XXX, XXX, XXX );改变值D3DCOLOR_ARGB后(XXX,XXX,XXX,XXX);6 y2 C; M6 H, j
Using the following macros work as well I believe:使用下列宏工作我相信: 8 V! t9 Z& K. K2 p+ v, F7 |' \. h5 ]# F4 v& d& w7 m- L
Code:代码:7 R l, O, C$ D( X& t6 T
D3DCOLOR_XYUV 3 I/ @& {) m/ S5 ~$ G9 P4 X" ]D3DCOLOR_AYUV 8 j0 y- m# K- }- Y% H8 K" _D3DCOLOR_ARGB, O0 A( }3 H8 C8 |6 a1 W o
D3DCOLOR_RGBA 4 n% r Q, [, _' E2 c# W+ \( k* GD3DCOLOR_XRGB. e8 _7 U; |/ B4 Q4 u. @5 _
D3DCOLOR_COLORVALUEObviously if you set a new D3DCOLOR type you also have to change the values as well. 显然如果你设定一个新的D3DCOLOR类型你也必须改变的价值。RGBA = red green blue alpha, so change the first three to the colors you desire and the fourth to the alpha level. RGBA红绿蓝色=阿尔法,所以改变前三个颜色你欲望和四年级到α-水平。With XRGB you would have no alpha, just XXX, XXX, XXX. 与XRGB就没有阿尔法,只是XXX,XXX,XXX。Do note that black is impossible unless you do heavy alterations to the source.黑色是不可能做的注意,除非你重修改源。 . E$ Z. g, B4 A" C1 K1 @1 i L0 V# p) q) q1 j% G) X& W
The format works this way: 255, 255, 255, 0. 这样做的格式:255、255、255 0。The numbers are Red, Blue, Green, Alpha. 这些数字都是红色、蓝色、绿色、α波。Change each value from 0 to 255 as you wish.改变每个值从0到255随你的便。' i& a3 P$ {, |6 v9 t- P$ H9 _
( N9 D( l6 x4 f: ^, z- y% Einb4 every nub server does this /ridi每一个关键inb4这/ ridi服务器$ w0 R7 s% Q7 H. p