Thread: Nospread C++

Results 1 to 9 of 9
  1. #1
    Recigy's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    815
    Reputation
    78
    Thanks
    1,576

    Nospread C++

    Code:
    #include "Main.h"
    
    namespace NoSpread
    {
    	void AngleVectors( Vector angles, Vector &forward, Vector &right, Vector &up) {
    		float		angle;
    		static float		sr, sp, sy, cr, cp, cy;
    
    		angle = angles[1] * (M_PI * 2 / 360);
    		sy = sin(angle);
    		cy = cos(angle);
    		angle = angles[0] * (M_PI * 2 / 360);
    		sp = sin(angle);
    		cp = cos(angle);
    		angle = angles[2] * (M_PI * 2 / 360);
    		sr = sin(angle);
    		cr = cos(angle);
    
    		forward[0] = cp*cy;
    		forward[1] = cp*sy;
    		forward[2] = -sp;
    
    		right[0] = (-1 * sr*sp*cy + -1 * cr*-sy);
    		right[1] = (-1 * sr*sp*sy + -1 * cr*cy);
    		right[2] = -1 * sr*cp;
    
    		up[0] = (cr*sp*cy + -sr*-sy);
    		up[1] = (cr*sp*sy + -sr*cy);
    		up[2] = cr*cp;
    	}
    	void Compensate(int SeedTime)
    	{
    		centity_t* local = centity_t::GetInstance(Globals::cg->GetClientNum());
    		clientInfo_t* local_info = clientInfo_t::GetInstance(Globals::cg->GetClientNum());
    		
    		int serverTimeSeed = SeedTime;
    		Utils::MemCall<int*>(offsets.HashSeed).CdeclCall<void>(&serverTimeSeed);
    
    		float flRange = 8192.0f;
    
    		float minSpread, maxSpread;
    		Utils::MemCall<playerState_s*, int, float*, float*>(offsets.BG_GetSpreadForWeapon).CdeclCall<void>(Globals::playerState, local->GetWeaponID(), &minSpread, &maxSpread);
    		Vector RefAngles = local_info->GetViewAngle();
    
    		float Spread = Globals::cg->Spread() * 0.0039215689f;
    
    		auto v14 = Utils::MemCall<int>(0x5846F0).CdeclCall<int>(local->GetWeaponID());
    
    		if (*(float*)((int)Globals::playerState + 0x1E0) == 1.0f)
    			Spread = (float)((float)(maxSpread - *(float *)(v14 + 2016)) * Spread) + *(float *)(v14 + 2016);
    		else
    			Spread = (tan((minSpread + ((maxSpread - minSpread) * Spread)) *  0.017453292f)) * flRange;
    
    		float right, up;
    		auto v23 = Utils::MemCall<int*>(0x6A3490).CdeclCall<float>(&serverTimeSeed) * 360.0f;
    		Utils::MemCall<int*>(0x4F38A0).CdeclCall<void>(&serverTimeSeed);
    		auto v26 = Utils::MemCall<int*>(0x6A3490).CdeclCall<float>(&serverTimeSeed);
    		v23 = v23 * 0.017453292f;
    
    		right = cos(v23) * v26 * Spread;
    		up = sin(v23) * v26 * Spread;
    
    		Vector dir, forward, vRight, vUp;
    		Vector Ang = local_info->GetViewAngle();
    
    		AngleVectors(Ang, forward, vRight, vUp);
    
    		dir[0] = (forward[0] * flRange) + (vRight[0] * right) + (vUp[0] * up);
    		dir[1] = (forward[1] * flRange) + (vRight[1] * right) + (vUp[1] * up);
    		dir[2] = (forward[2] * flRange) + (vRight[2] * right) + (vUp[2] * up);
    
    		Vector tmp;
    		dir.VectorToAngle();
    
    		Globals::UserCmd->angles[0] += ANGLE2SHORT(Ang[0] - dir[0]);
    		Globals::UserCmd->angles[1] += ANGLE2SHORT(Ang[1] - dir[1]);
    	}
    }
    Credits: @S4itama
    Last edited by Recigy; 11-27-2017 at 09:51 AM.

  2. The Following User Says Thank You to Recigy For This Useful Post:

    erlwarrior (11-28-2017)

  3. #2
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261
    Nice paste kid, give credits to @S4itama atleast, wow look that he can download the zip and extract it and copy the source and post it, i bet you do not even know how to use that...


    f*ck you
    Code:
    __usercall
    !

  4. The Following 3 Users Say Thank You to niko1921 For This Useful Post:

    aku (11-30-2017),Silent (02-22-2018),ThisKillcam3 (12-07-2017)

  5. #3
    Recigy's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    815
    Reputation
    78
    Thanks
    1,576
    Quote Originally Posted by niko1921 View Post
    Nice paste kid, give credits to @S4itama atleast, wow look that he can download the zip and extract it and copy the source and post it, i bet you do not even know how to use that...
    Edited as requested.

  6. The Following User Says Thank You to Recigy For This Useful Post:

    erlwarrior (11-28-2017)

  7. #4
    erlwarrior's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by niko1921 View Post
    Nice paste kid, give credits to @S4itama atleast, wow look that he can download the zip and extract it and copy the source and post it, i bet you do not even know how to use that...
    he knows how 2 use it very well, have been using his private cheats for a while

  8. The Following User Says Thank You to erlwarrior For This Useful Post:

    Recigy (11-28-2017)

  9. #5
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261
    Quote Originally Posted by erlwarrior View Post
    he knows how 2 use it very well, have been using his private cheats for a while
    yeh, 3 legit 5 me, he know how use it... what is wrong with people today....


    f*ck you
    Code:
    __usercall
    !

  10. The Following User Says Thank You to niko1921 For This Useful Post:

    ThisKillcam3 (12-07-2017)

  11. #6
    Recigy's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    815
    Reputation
    78
    Thanks
    1,576
    Quote Originally Posted by niko1921 View Post
    yeh, 3 legit 5 me, he know how use it... what is wrong with people today....
    y u salt?

  12. #7
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261
    Quote Originally Posted by Recigy View Post
    y u salt?
    dude, i know that your "private hack" it's pasted, oh casually, a guy releases his sources on other forum and now everyone has coded "his own bot"... and no, i'm not salt... cheers


    f*ck you
    Code:
    __usercall
    !

  13. The Following User Says Thank You to niko1921 For This Useful Post:

    ThisKillcam3 (12-07-2017)

  14. #8
    Recigy's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    815
    Reputation
    78
    Thanks
    1,576
    Quote Originally Posted by niko1921 View Post
    dude, i know that your "private hack" it's pasted, oh casually, a guy releases his sources on other forum and now everyone has coded "his own bot"... and no, i'm not salt... cheers
    am 48 year man from somalia
    I selled my wife for internet conection

  15. #9
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Quote Originally Posted by niko1921 View Post
    Nice paste kid, give credits to @S4itama atleast, wow look that he can download the zip and extract it and copy the source and post it, i bet you do not even know how to use that...
    x(



    - - - Updated - - -

    Quote Originally Posted by Recigy View Post
    y u salt?
    SALLLTTTTTTTTTTTTTTTTTTTT

    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



Similar Threads

  1. RE: [ Release] Combat arms:Chams,Nospread and more...
    By eddieg in forum Combat Arms Hacks & Cheats
    Replies: 99
    Last Post: 07-28-2009, 05:49 PM
  2. We only need NoSpread hack!!!
    By ddd555 in forum Combat Arms Europe Hacks
    Replies: 73
    Last Post: 05-24-2009, 07:25 PM
  3. Teamspeak NoSpread hack after the patch??
    By ChairmanMao in forum Combat Arms Europe Hacks
    Replies: 17
    Last Post: 03-21-2009, 03:56 AM
  4. nospread and glass walls tuts
    By Q in forum WarRock - International Hacks
    Replies: 2
    Last Post: 10-31-2007, 08:39 AM
  5. Codes 2 get weapons,swim,5th slot,nospread recoil,...
    By crazy4her in forum WarRock - International Hacks
    Replies: 9
    Last Post: 06-07-2007, 01:42 PM