this is a simple example for a working box esp
D3DXVECTOR3 vecOr; //store the player position in this (i used bone 1, so the boxes move better with players)
D3DXVECTOR3 vec2; //leave empty
D3DXVECTOR3 vec3; //leave empty
float fScale, fDiff; //leave empty
D3DXVECTOR3 *v3Up; //pointers to the 'up' vector from the local player viewmatrix
if( p->iStance == STANCE_STANDING && plr->entity == plr->vehicle ) {
D3DXVec3Scale( &vec2, v3Up, 0.8f ); //create a vector length 0.8 units up relative to the camera (when using world coords 'up' the boxes become smaller if u are standing above player
D3DXVec3Scale( &vec3, v3Up, -0.9f );
fScale = 0.50f;
} else if( p->iStance == STANCE_CROUCHING && plr->entity == plr->vehicle ) {
D3DXVec3Scale( &vec2, v3Up, 0.6f );
D3DXVec3Scale( &vec3, v3Up, -0.4f );
fScale = 0.80f;
} else if( plr->entity != plr->vehicle ) { //vehicle or smth, square box
D3DXVec3Scale( &vec2, v3Up, 0.6f );
D3DXVec3Scale( &vec3, v3Up, -0.3f );
fScale = 1.0f;
}
vec2 += vecOr;
vec3 += vecOr;
W2S_project( &vec2 );
W2S_project( &vec3 );
fDiff = (vec3.y - vec2.y)*fScale;
D3DRECT rect = {(LONG)(vec2.x - fDiff/2), (LONG)(vec2.y), (LONG)(vec2.x + fDiff/2), (LONG)(vec3.y)};
borderRect( dev, col2, &rect );
what it should look like:
thank me?
heres a link to the picture,somehow doesnt work,sory
Box ESP Pictures, Box ESP Images, Box ESP Photos, Box ESP Videos - Image - TinyPic - Kostenlose Bild- und Videospeicherung und gemeinsame Nutzung von Fotos
all credits go to learn_more from the *********.