[Release] PTC Method [ASM]

Posts 31–45 of 46 · Page 3 of 4
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
Cool .
..And the point of this is?
Quote Originally Posted by Synns View Post
..And the point of this is?
There is none.

Fuck ASM. /

Nothing you can't do in C++.
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");
Quote Originally Posted by Synns 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.
Quote Originally Posted by J 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
By doing this you are disabling optimizations that could otherwise occur by using C++...
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.
wouldnt this be almost unpatchable unless they rebuild the way they use the PTC codes
Quote Originally Posted by UltimateX1 View Post
wouldnt this be almost unpatchable unless they rebuild the way they use the PTC codes

/fp .
i like this way, definitely looks cleaner than the way we do it now,
Yes im going to convert to this. Looks neater!
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+.
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
}
Posts 31–45 of 46 · Page 3 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us