Release [GSC] No Recoil + Source

Discussion in 'Call of Duty: Black Ops 2 Scripts' started by xCometMods, May 31, 2018.

Tags:
  1. xCometMods

    xCometMods Modder

    43
    34
    228
    Credits:
    359
    Here is the code thanks to thahitcrew:
    Code:
    ToggleRecoil()
    {
        if( self.recoil == 0 )
        {
            self.recoil = 1;
            self iprintln( "No recoil ^2ON" );
            self thread DoRecoil();
        }
        else
        {
            self.recoil = 0;
            self iprintln( "No recoil ^1OFF" );
            self.entity delete();
            self notify("end_norecoil");
        }
    
    }
    DoRecoil()
    {
        self endon("death");
        self endon("disconnect");
        self endon("end_norecoil");
        for(;;)
        {
        if( self attackbuttonpressed())
        {
            self.entity = spawn("script_origin", self.origin);
            self.entity.angles = self.angles;
            self linkto( self.entity );
        }
        else
        {
            if(!(self attackbuttonpressed()))
            {
                self.entity delete();
            }
        }
        wait 0.1;
        }
    }
    This does work very well without aimbot.
    Video:
     
    Last edited: May 31, 2018
    CabCon and DF_AUS like this.
  2. DF_AUS

    DF_AUS Head Moderator Staff Member Head Staff Team Donator

    563
    843
    303
    Credits:
    5,510
    You should have posted this here: Please login or register to view links or downloads!

    Unless you are looking to release a variety of scripts please do not create threads for simply one code.
    I will leave your thread enabled for now, as i am unaware if you are going to be releasing more scripts or not, regardless, i will add it to the GSC scripts thread for you :smile:
     
    Last edited: May 31, 2018
    CabCon likes this.
  3. xCometMods

    xCometMods Modder

    43
    34
    228
    Credits:
    359
    Totally forgot about the manged code list but thanks for pointing it out!
     
    DF_AUS likes this.
  4. Harry

    Harry Software Engineer Premium Member

    1,218
    983
    398
    Credits:
    6,047
    Donut talk shite to the leetest of haxors on here m-nine
     
  5. Aqua!

    Aqua! New Member

    7
    0
    3
    Credits:
    33
    Is there a reason why it completely keeps you from moving while you shoot with the function enabled?
     
  6. P!X

    P!X Moderator Staff Member Head Staff Team

    286
    556
    303
    Credits:
    2,615
    Cause while attack button is pressed the player is linked to a script model
     
  7. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    570
    328
    378
    Credits:
    3,084
    wouldnt it work better to use them gsx (maybe gcx idk) functions to directly change memory? yea it would require different offsets depending on what platform but you would be able to move and is less taxing on the game to run. and having a library of offsets for each platform wouldnt be too hard to implement.

    i dont do any gsc tho so idk
     
  8. candy

    candy G59 Terrorist Donator

    1,265
    831
    398
    Credits:
    7,070
    yes.
     
    Pyrex BLJ likes this.

Share This Page