Poll: Should I add this feature to Multi-Toolz Rezurrection

Be advised that this is a public poll: other users can see the choice(s) you selected.

Results 1 to 14 of 14
  1. #1
    NightmareTX_RETIRED's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,240
    Reputation
    57
    Thanks
    15,075
    My Mood
    Fine

    Cool Remove Weapon Sway (Host Required)

    This source code will remove ADS sway while idle aiming, walk aiming and crouch aiming. This only works when you are the host and may affect all other players in the lobby (Not tested). Please answer the poll if you want me to put it in MultiToolz Rezurrection.

    For 1.9.461:
    Code:
    -Nop these 3 addresses-
    
    0x004AAE13
    0x00555DB6
    0x0059DFAA
    Video Proof (Private Match):

    Last edited by NightmareTX_RETIRED; 01-10-2013 at 11:14 AM.

  2. #2
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,883
    My Mood
    Psychedelic
    Quote Originally Posted by NightmareTX View Post
    This source code will remove ADS sway while idle aiming, walk aiming and crouch aiming. This only works when you are the host and may affect all other players in the lobby (Not tested). Please answer the poll if you want me to put it in MultiToolz Rezurrection.

    For 1.9.461:
    Code:
    -Nop these 3 addresses-
    
    0x004AAE13
    0x00555DB6
    0x0059DFAA
    Video Proof (Private Match):

    Is this really host only? I did it a different way and it seems to work....On dedi servers that is.

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Why nop them?

    There are Dvars that you can set to do this

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  4. #4
    NightmareTX_RETIRED's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,240
    Reputation
    57
    Thanks
    15,075
    My Mood
    Fine
    Quote Originally Posted by Kenshin13 View Post
    Is this really host only? I did it a different way and it seems to work....On dedi servers that is.
    How did you do it?

    ---------- Post added at 12:43 PM ---------- Previous post was at 12:41 PM ----------

    Quote Originally Posted by Jorndel View Post
    Why nop them?

    There are Dvars that you can set to do this
    Those dvars cant be modified. In Olly, the don't have MOV [XXXXXXXX],EAX for those dvars. Simply FLD [XXXXXXXX]. So you have to find what access to this float value.

    Dvars Used:

    player_breath_gasp_lerp
    bg_viewbobmax (I Think x3)
    Last edited by NightmareTX_RETIRED; 01-10-2013 at 11:47 AM.

  5. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by NightmareTX View Post
    How did you do it?

    ---------- Post added at 12:43 PM ---------- Previous post was at 12:41 PM ----------



    Those dvars cant be modified. In Olly, the don't have MOV [XXXXXXXX],EAX for those dvars. Simply FLD [XXXXXXXX]. So you have to find what access to this float value.

    Dvars Used:

    player_breath_gasp_lerp
    bg_viewbobmax (I Think x3)
    player_breath_gasp_lerp - And that range is the dvars I speak of

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #6
    NightmareTX_RETIRED's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,240
    Reputation
    57
    Thanks
    15,075
    My Mood
    Fine
    Quote Originally Posted by Jorndel View Post


    player_breath_gasp_lerp - And that range is the dvars I speak of
    thats what im saying. They cant be modified by reading XXXXXXXX and Add C

  7. #7
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by NightmareTX View Post
    thats what im saying. They cant be modified by reading XXXXXXXX and Add C
    If you say so

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  8. #8
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,883
    My Mood
    Psychedelic
    Quote Originally Posted by NightmareTX View Post
    thats what im saying. They cant be modified by reading XXXXXXXX and Add C
    Well, you need to go more in-depth with illy to find it. IDA n HexRays are my favorite here.
    Anyways in the weapon_t structure, for each weapon there is a WeaponSway_Multiplier and WeaponSway_ADS_Multiplier floating value.
    I just used the player's current Weapon ID to locate it's structure and nulled those two floats. Same effect and bullets seemed to hit exact places when ADS and well it should work if you have the No_Spread enabled (Not the host-only kind, the one where you use the functions Cl_WritePacket hook.) but I'm not sure as I didn't test this one. The ADS on guns seem to work tho.

  9. #9
    NightmareTX_RETIRED's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,240
    Reputation
    57
    Thanks
    15,075
    My Mood
    Fine
    Quote Originally Posted by Kenshin13 View Post
    Well, you need to go more in-depth with illy to find it. IDA n HexRays are my favorite here.
    Anyways in the weapon_t structure, for each weapon there is a WeaponSway_Multiplier and WeaponSway_ADS_Multiplier floating value.
    I just used the player's current Weapon ID to locate it's structure and nulled those two floats. Same effect and bullets seemed to hit exact places when ADS and well it should work if you have the No_Spread enabled (Not the host-only kind, the one where you use the functions Cl_WritePacket hook.) but I'm not sure as I didn't test this one. The ADS on guns seem to work tho.
    Unfortunately, this is too advanced for me yet.

  10. #10
    mwxplayer's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    hax
    Posts
    584
    Reputation
    10
    Thanks
    2,665
    My Mood
    Doh
    offsets are for 1.4.382
    Code:
    typedef float vec_t;
    typedef vec_t vec2_t[2];
    Code:
    #define punch_offset 0x97618C
    
    typedef struct
    {
        vec2_t PunchAngles;
    }PunchAngles_t;
    
    typedef struct
    {    
        char unknown0[1128]; //0x0000
        DWORD a; //0x0468  
        float b; //0x046C
        float c; //0x0470 
    
    }weaponsway_c;
    typedef struct
    {
        weaponsway_c *wswaypointer;
    }weaponsway_t;
    Code:
    weapon_t * GetWeaponX( int Index )
    {
        return*(weapon_t**)( 0x008DDB50 + 0x04 * Index );
    }
    void RemoveSway()
    {
       
    	PunchAngles_t*punch = (PunchAngles_t *)punch_offset;
    	punch->PunchAngles[0] = 0.0f;
        punch->PunchAngles[1] = 0.0f;
    	weaponsway_t *weaponsway = (weaponsway_t*)GetWeaponX(Entity[CG->ClientNum]->WeaponID);
    	if (weaponsway)
    	{
            weaponsway->wswaypointer->a = 0;
            weaponsway->wswaypointer->b = 0;
            weaponsway->wswaypointer->c = 0;
        }    
    	
    }
    seems to be work fine.... (even without being host.. and in dedicated servers too)

    credits : to whoever found this ( i forgot)
    Last edited by mwxplayer; 01-29-2013 at 02:57 AM.

  11. #11
    rawr im a tiger's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    On the edge of Sanity
    Posts
    238
    Reputation
    40
    Thanks
    1,017
    My Mood
    Angelic
    Quote Originally Posted by mwxplayer View Post
    offsets are for 1.4.382
    *copy-pasted code*
    seems to be work fine.... (even without being host.. and in dedicated servers too)

    credits : to whoever found this ( i forgot)
    No, that is incorrect. Just like nospread, this is calculated server-side. Instead of nulling the angles, read them and compensate for them in your aim angles.

  12. The Following User Says Thank You to rawr im a tiger For This Useful Post:

    Kenshin13 (01-29-2013)

  13. #12
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,883
    My Mood
    Psychedelic
    Quote Originally Posted by rawr im a tiger View Post
    No, that is incorrect. Just like nospread, this is calculated server-side. Instead of nulling the angles, read them and compensate for them in your aim angles.
    Thought No-Spread took this into consideration already?

  14. #13
    ~Syphox's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    The Third Reich
    Posts
    1,309
    Reputation
    337
    Thanks
    305
    My Mood
    Angelic
    Just like nospread, this is calculated server-side.
    So if i'm using a VIP-Hack with NoSpread i'm always host?

  15. #14
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,883
    My Mood
    Psychedelic
    Quote Originally Posted by justindufisch View Post
    So if i'm using a VIP-Hack with NoSpread i'm always host?
    Not necessary. It could just be editing your packets you send to the server.

Similar Threads

  1. Weapon Sway
    By Skulltrail in forum Call of Duty Modern Warfare 3 Help
    Replies: 1
    Last Post: 05-26-2012, 11:04 AM
  2. [Help] How to remove weapon/fist?
    By alkiller00 in forum WarRock Skinning
    Replies: 7
    Last Post: 09-18-2011, 11:06 AM
  3. [Help Request] Crysis 2 Script Changing Weapon Attachment Unlock Requirements
    By moruk35 in forum Crysis 2 Help
    Replies: 0
    Last Post: 09-05-2011, 11:32 AM
  4. [script] Changing Weapon Attachment Unlock Requirements
    By lolocauster in forum Crysis 2 Hacks / Cheats
    Replies: 13
    Last Post: 05-05-2011, 04:08 AM
  5. Lower Weapon Sway
    By instructer8 in forum Combat Arms Hacks & Cheats
    Replies: 38
    Last Post: 09-05-2008, 04:35 PM