Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 46
  1. #31
    Tibirius's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Elm Street, not sleeping
    Posts
    1,047
    Reputation
    12
    Thanks
    98
    My Mood
    Amused
    Quote Originally Posted by DeadLinez View Post
    100+ views, 2 thanks. awesome.
    i gain f**k all from this scince i dont code but i thanked you on behalf of the noobs who dont thank

  2. #32
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Cool .

  3. #33
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    ..And the point of this is?

  4. #34
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Quote Originally Posted by Tyrannus View Post
    ..And the point of this is?
    There is none.

    Fuck ASM. /

    Nothing you can't do in C++.

  5. #35
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    Quote Originally Posted by Stephen View Post


    There is none.

    Fuck ASM. /

    Nothing you can't do in C++.
    I'm asking why is he doing this:

    Code:
    void NoFog(void)
    {
            __asm
    	{
    		push "FogEnable 0"; 
    		call 0x377ED910;
    		add esp, 4;
    	}
    }
    When you can just do this:

    RunConsoleCommand("FogEnable 0");

  6. #36
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,159
    Reputation
    379
    Thanks
    5,760
    My Mood
    In Love
    Quote Originally Posted by Tyrannus View Post


    I'm asking why is he doing this:

    Code:
    void NoFog(void)
    {
            __asm
    	{
    		push "FogEnable 0"; 
    		call 0x377ED910;
    		add esp, 4;
    	}
    }
    When you can just do this:

    RunConsoleCommand("FogEnable 0");

    Using "RunConsoleCommand("FogEnable 0");" still does the same thing, look at the actual function, it uses asm.

  7. #37
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Quote Originally Posted by Jeffrey View Post
    Using "RunConsoleCommand("FogEnable 0");" still does the same thing, look at the actual function, it uses asm.
    Err.. I think this crashes CA if you call any functions he posted...

    0x377ED910 = pointer to ILTClient not PushToConsole

  8. #38
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy
    By doing this you are disabling optimizations that could otherwise occur by using C++...

  9. #39
    DeadLinez's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    http://mpgh.net Sexy Points: 989,576,420
    Posts
    465
    Reputation
    11
    Thanks
    499
    My Mood
    Psychedelic
    well this is a undetected method, and its just an example where you can use something. in ASM, my main goal was for people to understand what it does and learn a bit.

  10. #40
    UltimateX1's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    10
    Thanks
    10
    My Mood
    Yeehaw
    wouldnt this be almost unpatchable unless they rebuild the way they use the PTC codes

  11. #41
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Quote Originally Posted by UltimateX1 View Post
    wouldnt this be almost unpatchable unless they rebuild the way they use the PTC codes

    /fp .

  12. #42
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,320
    My Mood
    Doh
    i like this way, definitely looks cleaner than the way we do it now,

    commando: You're probably the best non-coder coder I know LOL


  13. #43
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Yes im going to convert to this. Looks neater!

  14. #44
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    This is such a waste of code..

    The reason you make methods in the first place is to use the same code over and over again, using less space.

    1 line of code looks a lot neater than 9 lines, and it is way easier to modify. What if that method gets patched? You have to delete all of them, or update every single one of them individually. Idk about you, but I would rather just update one method instead of 30+.

  15. The Following 3 Users Say Thank You to LightzOut For This Useful Post:

    NOOB (10-01-2010),Stephen (10-01-2010),whit (09-30-2010)

  16. #45
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    this code is completely bullshit. you cant directly push a string to the stack. the compiler would have to make an internal variable where the string will be stored and then the address of the variable pushed to the stack.. but inline asm doesnt support that, well not in the visual c++ version i use (7.1). also a call directly to a address also doesnt work with inline asm. you would have to store the address in a variable and use this variable.

    that would be correct when using inline asm:
    Code:
    char command[] = "ShowFPS 1";
    DWORD address = 0xDEADBEEF; //runconsolecommand address
    __asm {
       push command
       call address
    }


  17. The Following 3 Users Say Thank You to Gordon` For This Useful Post:

    LightzOut (10-01-2010),Solify (10-01-2010),Stephen (10-01-2010)

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. I believe the PTC method was patched
    By mistertex in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 19
    Last Post: 09-20-2010, 07:23 PM
  2. PTC Method
    By DBag4Life69 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 13
    Last Post: 09-12-2010, 07:34 PM
  3. PTC Method
    By Crash in forum Combat Arms EU Hack Coding/Source Code
    Replies: 4
    Last Post: 08-21-2010, 01:32 AM
  4. ptc method
    By HaX4LiFe! in forum Combat Arms EU Hack Coding/Source Code
    Replies: 23
    Last Post: 08-20-2010, 08:27 AM
  5. PTC Methods?
    By ~Liberty~ in forum Combat Arms EU Help
    Replies: 3
    Last Post: 07-26-2010, 10:41 AM