Want to know about aimpunch

Posts 1–2 of 2 · Page 1 of 1
Want to know about aimpunch
He guys i want to know what is aimpunch physically i really want work on my rcs untill i dont know the concept of aimpunch if i get to know what is aimpunch so i can code my own rcs so please i cant copy i just want to make my own rcs
Punch - The parameter responsible for the displacement of the sight relative to the expected center of the screen during the spray.
You have to store it in class Vector(google it) or in three-dimensional array.
You can get it likt this:
Pseudocode:
Code:
DWORD LocalPlayer = Read(Client[dll] + dwLocalPlayer);
Vector Punch = Read(LocalPlayer + dwPunch);
Also you need to multiply x and y axis by 2.f, because "weapon_recoil_scale" = "2.0"
Code:
DWORD LocalPlayer = Read(Client[dll] + dwLocalPlayer);
Vector Punch = Read(LocalPlayer + dwPunch) * 2.f;
The resulting value subtract from existing viewangles.
Thats all.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us