SolvedEspBox

Posts 1–5 of 5 · Page 1 of 1
EspBox
Bom pessoal eu coloquei Esp's na white base tudo certinho mais de todas as esps a que ta me dando problem é a espbox ela não fica uma box certa em volta do player ela fica digamos mais pra esquerda e ela ocupa a metade do corpo do player digamos ela esta "DESREGULADA" queria sabe se alguem pode me ajudar com esse problem o codigo é esse!

Code:
if(ESPBoxes) {
    DrawBorder(pDevice, Position.x - (15000 / MyaDistance), 
            Position.y - (35000 / MyaDistance), 
            50000 / MyaDistance / 6 * 2, 
            50000 / MyaDistance / 3 * 2, 
            2, Red);
}
Post your "DrawBorder" function

Include your declarations for the variables you are passing through the DrawBorder function also.
Quote Originally Posted by Flengo View Post
Post your "DrawBorder" function

Include your declarations for the variables you are passing through the DrawBorder function also.
@Flengo
Code:
VOID cBase::DrawBorder(INT x, INT y, INT w, INT h, INT px, D3DCOLOR BorderColor, LPDIRECT3DDEVICE9 pDevice)
{
	FillRGB(x,(y + h - px), w, px, BorderColor, pDevice);
	FillRGB(x, y, px, h, BorderColor, pDevice);
	FillRGB(x, y, w, px, BorderColor, pDevice);
	FillRGB(x + w - px, y, px, h, BorderColor, pDevice);
}
Basta fixar os pontos dela no caso na PosX da DrawBorder iria ficar :

Head = pLTModel->GetNodeTransform(FXCharacter->Object, 8, &AimTransform, TRUE);
AimTransform.Pos.y += 6.0f;

if(ESPBoxes)
{
DrawBorder(pDevice, Head - (15000 / MyaDistance), //
Position.y - (35000 / MyaDistance),
50000 / MyaDistance / 6 * 2, // 50000 = tamanho da Borda
50000 / MyaDistance / 3 * 2,
2, Red);
}
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?