Bullet Trace for ayy

Posts 1–6 of 6 · Page 1 of 1
Bullet Trace for ayy
Code:
void CEsp::BulletTrace(IClientEntity* pEntity, Color color)
{
	Vector src3D, dst3D, forward, src, dst;
	trace_t tr;
	Ray_t ray;
	CTraceFilter filter;

	AngleVectors(pEntity->GetEyeAngles(), &forward);
	filter.pSkip = pEntity;
	src3D = pEntity->GetBonePos(6) - Vector(0, 0, 0);
	dst3D = src3D + (forward * Menu::Window.VisualsTab.BulletTraceLength.GetValue());

	ray.Init(src3D, dst3D);

	Interfaces::Trace->TraceRay(ray, MASK_SHOT, &filter, &tr);

	if (!Render::WorldToScreen(src3D, src) || !Render::WorldToScreen(tr.endpos, dst))
		return;

	Render::DrawLine(src.x, src.y, dst.x, dst.y, color);
	Render::DrawRect(dst.x - 3, dst.y - 3, 6, 6, color);
};


thats a copy-pasted based code from Gamerfood CSGO project
why does it not work after the op update?
all line points in 1 direction
Quote Originally Posted by Sylent91 View Post
why does it not work after the op update?
all line points in 1 direction
Hmmm, honestly I have absolutely 0 clue what could be causing this, but if I were to randomly guess it'd be something like, outdated offsets and signatures, but I am not 100% sure...
Quote Originally Posted by derotado20 View Post
is possible you help me ?
http://prntscr.com/i58k0e
Are you that clueless...?

First error is a menu slider.

Second one should be Render::Line
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us