Solved How to disable object drawing?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

BlackLine

Newbie
Mar 31, 2013
4
152
Visit site
0
I'm just followed Fleep's wallhack with chams tutorial and it works fine. The only question is: how to disable object drawing if I know it's NumVertices and primCount?
I thought about transparent textures, but Google didn't helped a lot. Played with setTexture a little, but it doesn't works too.
I think this part of code should be modified, but I don't know what to modify:
C++:
if(glass){
 d3dDevice->SetRenderState(D3DRS_ZENABLE,false);
 d3dDevice->SetTexture(0,texWhite);
 d3dDevice->DrawIndexedPrimitive(device,BaseVertexIndex,MinVertexIndex,NumVertices,startIndex,primCount);
 d3dDevice->SetRenderState(D3DRS_ZENABLE,true);
}
Waiting for help :) thanks.
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,188
12,638
Mankei Iland
Visit site
76
NULL the shader and return D3D_OK on it.

Or you could also do this in your mod rec:
C++:
pDevice->SetRenderState(D3DRS_DESTBLEND, 4);
pDevice->SetRenderState(D3DRS_SRCBLEND, 3);
pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, true);
 

BlackLine

Newbie
Mar 31, 2013
4
152
Visit site
0
Crypt, maybe I do something wrong, but the texture becomes black. I found a tool named "ColorPicker XE2" by Departure which allows to export the color in a texture array. But I can't change the alpha attribute

in it, so it's always 255. So I thought that if I'll write this it would make sense:

C++:
const BYTE bColor[58]={
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00
};
But the texture becomes black too. How can I create a color with alpha 0 then?
 

BlackLine

Newbie
Mar 31, 2013
4
152
Visit site
0
Ok. Tried to play with SetRenderState and found D3DRS_FILLMODE.
Now I have this code:
C++:
if(glass){
 d3dDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_WIREFRAME);
 d3dDevice->SetRenderState(D3DRS_ZENABLE,true);
}
I don't know why, but it totally hides the glass. No wireframe at all. But the sky is glitching sometimes. Not a big problem though.
Anyway, if someone have a better solution post it please :)
 

WiTH

Jr.Coder
Full Member
Nobleman
May 24, 2012
58
458
Visit site
1
i was able to code nosmoke for cod4 just by using "return D3D_OK;" so it should work for you

try this for the wireframe, it worked for my wireframe hands in cod4:
if(glass){
d3dDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME );}
else{
d3dDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );}
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods League of Legends Accounts