Results 1 to 3 of 3
  1. #1
    hungcbvn1's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    421
    My Mood
    Paranoid

    relative mouse movement and vecPunch for recoil script

    Code:
    Vector one = Read<Vector>(dwPlayer + dwVecPunch);
    Sleep(50); //will calculate difference for 50 ms calls - I use around 90 ms in my AHK based on weapon RPM
    Vector two = Read<Vector>(dwPlayer + dwVecPunch);
    Vector diff;
    diff.x = (one.x - two.x) * 2.f; //also you gotta multiply by two because of the recoil scale
    diff.y = (one.y - two.y) * -2.f; //will throw negative values which is good since you compensate the other way
    y = diff.x / (m_yaw * sensitivity * windows_sens_modifier); //by default m_yaw is 0.022, use 1 for sensitivity as you can scale the pattern later on very well, windows_sens_modifier is 1 for middle mouse sens value in control panel (6/11)
    x = diff.y / (m_yaw * sensitivity * windows_sens_modifier); //y is actually x coordinate since in csgo, x is pitch (up and down)
    std::cout << "x difference: " << x << "y difference: " << y << "\n";
    mouse_event(MOUSEEVENTF_MOVE, x, y, 0, 0);
    The code above is to record relative mouse movement for recoil script(made by pean153) when I was lurking on the UC (I don't know if it's ok to call other forum on here)
    I'm trying to find the variable for weapons in CSGO and other games but i don't know the language in which the code is written, is it C#?
    I have asked Pean but he didn't answer so i hope someone who's kind enough to answer. Thank you
    Last edited by hungcbvn1; 01-15-2017 at 07:40 AM.

  2. #2
    thearrowa's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    11
    U cant just use or "apply" this. Also, it wouldnt be a script.

  3. #3
    hungcbvn1's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    421
    My Mood
    Paranoid
    I know it's not a script and I wanted to know the language in which the code is written.( I'm very bad with words,both my mother tongue and english)

Similar Threads

  1. [Solved] I have a no-recoil script and i don't know programm for run this script
    By Vincenzogov99 in forum RoboCraft Discussions & Help
    Replies: 2
    Last Post: 07-12-2015, 08:36 PM
  2. Want to trade monkey monitor script and cash for remote bypass
    By b7radley in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 7
    Last Post: 11-01-2012, 10:27 AM
  3. [Info] Look here for other scripts and stuff!
    By Aɴᴏɴʏᴍᴏᴜs Ԍᴀᴍᴇᴙ in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 1
    Last Post: 10-07-2012, 11:39 PM
  4. what is a code for recoil speed and 2dbox???
    By alphabassi in forum Combat Arms Coding Help & Discussion
    Replies: 6
    Last Post: 08-05-2011, 07:13 PM
  5. [Request] Sudden attack anti spread,anti recoil and aimbot for SASEA.
    By 0125972799 in forum Sudden Attack General
    Replies: 1
    Last Post: 05-05-2011, 11:38 AM