
Originally Posted by
OneCa
Hey there
I was working for esp-boxes but I had two little problems
1st I can see that the boxes not 100% in the middle of players. (Does it mean the problem in W2S )?
2nd How to make the boxes disappear when you see the enemy ?
thx

considering everyone else here can't answer your questions:
1. Nothing wrong with ur w2s, you need to get the bounding box mins and maxes.
Code:
float h = max.y - min.y; float w = h / 4; drawrect( playercenter.x-w, min.y, w * 2, h, color );
^pseudo code
2. do a vis check and fov check
Code:
void esp( void ){ if( targetvisible == true && targetonscreen == true ) return; /*do esp stuff*/ return; }
^pseudo code