-
Автор темы
- #1
hello, my clip_ray_to_hitbox function is crashing (pasted from lw but still crashes). any ideas why it might crash?
(im using designer's sdk)
clip ray to hitbox:
any help is appreciated.
(im using designer's sdk)
clip ray to hitbox:
Код:
static int clip_ray_to_hitbox(const ray_t& ray, studio_box_t* hitbox, matrix_t& matrix, trace_t& trace)
{
static auto fn = utilities::pattern_scan("client.dll", "55 8B EC 83 E4 F8 F3 0F 10 42");
trace.flFraction = 1.0f;
trace.startSolid = false;
return reinterpret_cast <int(__fastcall*)(const ray_t&, studio_box_t*, matrix_t&, trace_t&)> (fn)(ray, hitbox, matrix, trace);
}