Thumbs upSoldier Front Chams (Numvertices & PrimitiveCount)

Posts 115 of 40 · Page 1 of 3
Soldier Front Chams (Numvertices & PrimitiveCount)
How to use Numvertices and Primitives into chams?
Every Characters have each correct modelrec inorder to chams,
Example for PSU Character ModRec logged
# Numvertices |# Primitives |
87 | Arms |139| Arms |
79 | Feet |105| Feet |
126| Hands |172| Hands |
370| Legs |740| Legs |
499| Body |624| Body |
523| Head |846| Head |
-----------------------------
1. Define each characters you want to chams for PSU
Code:
#define (Numvertices== 87 && Primitives == 139)//arms
Numvertices== 79 && Primitives == 105 ||//feet
Numvertices== 126 && Primitives ==172 ||//hands
Numvertices== 370 && Primitives ==740 ||//legs
Numvertices== 499 && Primitives ==624 ||//body
Numvertices== 523 && Primitives ==846) //head
2. Then, in Global
Code:
LPDIRECT3DTEXTURE9 Bue,Pink;
bool Color = true;
bool chams;
int Primitives;
int Numvertices;
3.In EndScene: for the Color Texture of the character.
Code:
(Color)
{
if
GenerateTexture(pDevice, &Pink, D3DCOLOR_ARGB (255,255,20 ,147));
GenerateTexture(pDevice, &Blue, D3DCOLOR_ARGB (255,0 ,0 ,255));
Color = false;
}
4. In DIP: for the color chams during in-game:
Code:
LPDIRECT3DVERTEXBUFFER9 Stream;
UINT Offset;
UINT Stride;
if ( pDevice->GetStreamSource(0,&Stream,&Offset,&Stride) == D3D_OK )
{
Stream->Release();
}
if (chams)
...
...
(PSU)
...
...
{
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
pDevice->SetTexture(0,Blue);
pDrawIndexedPrimitive(pDevice,Type,BaseIndex,MinIn dex,Numvertices,Startindex,Primitive);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
pDevice->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
pDevice->SetTexture(0,Pink);
}
5. Here's the actual Screeshots:


Credits: FireFox, DarkAppalow, 11Swift11
Nice tutorial but I like using _ReturnAddress() and _AddressOfReturnAddress() it's a lot easier :P
Quote Originally Posted by Bitset View Post
Nice tutorial but I like using _ReturnAddress() and _AddressOfReturnAddress() it's a lot easier :P
Hmmm...never try but i fond in logging the modelrec..thanks for the info brother
Quote Originally Posted by firefox800 View Post
Hmmm...never try but i fond in logging the modelrec..thanks for the info brother
can you just release it ?
Quote Originally Posted by Bitset View Post
Nice tutorial but I like using _ReturnAddress() and _AddressOfReturnAddress() it's a lot easier :P
I'm just wondering, what hook is undetected here in sf?
Quote Originally Posted by blackgamingthesecond View Post
I'm just wondering, what hook is undetected here in sf?
I am using a Midfunction HWBP and works fine, make sure you don't use any detected API's and you should be fine.
Quote Originally Posted by Bitset View Post
I am using a Midfunction HWBP and works fine, make sure you don't use any detected API's and you should be fine.
Ohh cool, thanks
Thanks For Source Code
Nice tutorial. Thanks to guys like you this section is alive
nice tutorial need fix bugs
Quote Originally Posted by Trove View Post
nice tutorial need fix bugs
What kind of bugs are you experiencing?
Posts 115 of 40 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

Need help?