Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    ryankinzz's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    329

    No recoil/ laser makes game crash

    So im new to making things for mw3 and I watched a few tuts and I cant figure out how to get certain things working like no recoil laser and fov
    here is the code that im using. Im trying to get laser working here.

    Code:
    byte[] L = { 0x0 };
            private void button3_Click(object sender, EventArgs e)
            {
                if (Process_Handle("iw5mp"))
                    WriteInteger(0x43AC97, 1);
            }
    Can someone please help me thanks

  2. #2
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    well then you should learn a bit more.. for Lasers you have to write a BYTE, 0, to 0x43AC97. You're writing an INTEGER... that will obviously crash your game cause instead of overwriting one byte you're overwriting 4 (Integer = 4 bytes)...

    Code:
    byte[] b = { 0 };
    WriteBytes(0x43AC97, b);


    CoD Minion from 09/19/2012 to 01/10/2013

  3. #3
    ryankinzz's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    329
    Quote Originally Posted by -InSaNe- View Post
    well then you should learn a bit more.. for Lasers you have to write a BYTE, 0, to 0x43AC97. You're writing an INTEGER... that will obviously crash your game cause instead of overwriting one byte you're overwriting 4 (Integer = 4 bytes)...

    Code:
    byte[] b = { 0 };
    WriteBytes(0x43AC97, b);
    Yeah I know I cant find any tuts I only found were Jorndel's and i dont think he has one can you tell me how to get fov working becuase when i type 80 it zooms in reallly far!

  4. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by ryankinzz View Post
    Yeah I know I cant find any tuts I only found were Jorndel's and i dont think he has one can you tell me how to get fov working becuase when i type 80 it zooms in reallly far!
    Code:
    float FoV = 65;
    WriteBytes(0xAddy, new byte[] { (byte)FoV } );
    We just set a float value, then we write that as a byte list.
    We only apply 1 item to our byte list.

    You can now use the float on other stuff as well.
    Like an increase/decrease.

     
    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

  5. #5
    ryankinzz's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    329
    Quote Originally Posted by Jorndel View Post


    Code:
    float FoV = 65;
    WriteBytes(0xAddy, new byte[] { (byte)FoV } );
    We just set a float value, then we write that as a byte list.
    We only apply 1 item to our byte list.

    You can now use the float on other stuff as well.
    Like an increase/decrease.
    So I do this
    Code:
            float Fov = 65;
            private void button8_Click(object sender, EventArgs e)
            {
                if (Process_Handle("iw5mp"))
                WriteBytes(0x5ABD5AC, new byte[] { (byte)Fov });
    because that didnt work :/ I know I sound like a noob right now

  6. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by ryankinzz View Post
    So I do this
    Code:
            float Fov = 65;
            private void button8_Click(object sender, EventArgs e)
            {
                if (Process_Handle("iw5mp"))
                WriteBytes(0x5ABD5AC, new byte[] { (byte)Fov });
    because that didnt work :/ I know I sound like a noob right now
    You do know that 65 is the default?

     
    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

  7. #7
    ryankinzz's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    329
    Quote Originally Posted by Jorndel View Post


    You do know that 65 is the default?
    Yeah but when I changed it to 80 nothing happens

  8. #8
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by ryankinzz View Post
    Yeah but when I changed it to 80 nothing happens
    Check the address with Cheat Engine.
    Sometimes I experience that it don't match.

     
    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

  9. #9
    KingPic's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    any updates with your progress? I know C++ a bit and need no recoil too so I'd be interested in knowing how to do it, thanks!

  10. #10
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    C++ Code:
    Code:
    
    *(BYTE*)0x004D14B7 = 0x0; //Laser -> Write NULL(Aka 0) to Laser Address
    *(int*)0x0054F8F9 = 0x90909090; //Write four NOP bytes to the No Recoil address
    *(BYTE*)0x0054F8FD = 0x90; //Write the last byte to the No Recoil address
    *(float*)0x59C0724 = (float)90; //Changes FoV to 90.0f
    These are for 1.4.382
    Sorry if you didn't want c++ code. Didn't exactly read the above post. Just saw C++
    Last edited by Kenshin13; 10-15-2012 at 07:16 PM.

  11. #11
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Quote Originally Posted by Kenshin13 View Post
    C++ Code:
    Code:
    
    *(BYTE*)0x004D14B7= 0x0; //Laser -> Write NULL(Aka 0) to Laser Address
    *(int*)0x0054F8F9 = 0x90909090 //Write four NOP bytes to the No Recoil address
    *(BYTE*)0x0054F8FD = 0x90 //Write the last byte to the No Recoil address 
    These are for 1.4.382
    Sorry if you didn't want c++ code. Didn't exactly read the above post. Just saw C++
    Why write a int then a byte for the no recoil? :S Just writes 5 Nops and you're ok (BYTE Nops[5] ={ 0x90, 0x90, 0x90, 0x90, 0x90 }; )


    CoD Minion from 09/19/2012 to 01/10/2013

  12. #12
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by -InSaNe- View Post
    Why write a int then a byte for the no recoil? :S Just writes 5 Nops and you're ok (BYTE Nops[5] ={ 0x90, 0x90, 0x90, 0x90, 0x90 }; )
    It's the difference of 2 lines vs ...more than 4....plus way shorter

  13. #13
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Quote Originally Posted by Kenshin13 View Post
    It's the difference of 2 lines vs ...more than 4....plus way shorter
    How can that be shorter =O

    And, OP, if you want to find the new offsets for it, take a look at this tutorial.. https://www.mpgh.net/forum/279-call-d...d-offsets.html It's for COD4, but the same logic still works with MW3.


    CoD Minion from 09/19/2012 to 01/10/2013

  14. #14
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by -InSaNe- View Post
    How can that be shorter =O

    And, OP, if you want to find the new offsets for it, take a look at this tutorial.. https://www.mpgh.net/forum/279-call-d...d-offsets.html It's for COD4, but the same logic still works with MW3.
    Code:
    (Using your general method)
    
    unsigned long *NoRecoilAddress = (unsigned long*)0x0054F8F9;
    unsigned char noRecoilPatch[5] = {0x90, 0x90, 0x90, 0x90, 0x90};
    unsigned long *LaserAddress = (unsigned long*)0x004D14B7;
    unsigned char laserPatch[1] = {0x00};
    unsigned long *FoVAddress = (unsigned long*)0x59C0724;
    unsigned char fovPatch[1] = {90};
    memcpy((void*)NoRecoilAddress, (void*)noRecoilPatch, sizeof(noReoilPatch));
    memcpy((void*)LaserAddress, (void*)laserPatch, sizeof(laserPatch));
    memcpy((void*)FoVAddress, (void*)fovPatch, sizeof(fovPatch));
    
    (Using my method)
    
    *(BYTE*)0x004D14B7 = 0x0;
    *(int*)0x0054F8F9 = 0x90909090;
    *(BYTE*)0x0054F8FD = 0x90;
    *(float*)0x59C0724 = 90.0f;
    Difference: 9 long lines vs 4 short lines. #Tr0L
    I win.
    #CodingWars x3
    Last edited by Kenshin13; 10-15-2012 at 07:18 PM.

  15. #15
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Code:
    BYTE Nops[5] = { 0x90, 0x90, 0x90, 0x90, 0x90};
    (BYTE*)0x0054F8F9 = Nops;


    CoD Minion from 09/19/2012 to 01/10/2013

  16. The Following User Says Thank You to MarkHC For This Useful Post:

    rawr im a tiger (10-16-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help Request] Mw2 lib making my game crash. Works othervise normally.
    By Some1weird in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 10-22-2012, 03:55 AM
  2. hacks make game crash
    By buckshot276 in forum Combat Arms Help
    Replies: 4
    Last Post: 10-14-2011, 10:05 AM
  3. hacks make the game crash
    By Lokos503 in forum Combat Arms Help
    Replies: 10
    Last Post: 06-23-2010, 04:08 PM
  4. [HELP REQUEST]Game Crash
    By White Mask in forum WarRock - International Hacks
    Replies: 1
    Last Post: 07-07-2007, 11:33 AM
  5. how can i make game hack?!!!!
    By UnknownID in forum General Game Hacking
    Replies: 2
    Last Post: 02-07-2006, 07:21 PM