Dateien nach "/" hochladen
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "inc/include.h"
|
||||
|
||||
void features::rcs(Context* pctx, float& x, float& y)
|
||||
{
|
||||
auto me = r5::local_player(pctx);
|
||||
if(me.is_valid() && me.is_alive())
|
||||
{
|
||||
auto recoil = me.vec_recoil();
|
||||
auto my_ang = me.vec_eye_angle();
|
||||
Vector3D aim_ang = my_ang - recoil;
|
||||
Vector3D aim_delta = (my_ang - aim_ang);
|
||||
|
||||
if(aim_delta.x != xf(0) && aim_delta.y != xf(0))
|
||||
{
|
||||
aim_delta.x /= xf(0x3CB43958);
|
||||
aim_delta.y /= xf(0x3CB43958);
|
||||
|
||||
auto vec_mouse = Vector3D(x, y, xf(0));
|
||||
auto vec_delta = Vector3D(aim_delta.y, -aim_delta.x, xf(0));
|
||||
vec_delta += vec_mouse;
|
||||
|
||||
x += vec_delta.x * xf(0x3F6B851F);
|
||||
y += vec_delta.y * xf(0x3F6B851F);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user