HelpDeactivating Laser

Posts 1–11 of 11 · Page 1 of 1
Deactivating Laser
Hi,

it's me again and I'm trying to deactivate the laser, which I activated by writing a 0-byte to the relevant address. Works fine, but I can't find out how to deactivate it again. Tried to write a 1-byte to the address, but that only crashes the game.

Any ideas?

Many thanks in advance
x2Sorcer
If you browsed the memory region, you'd see the byte you overwrote was origionally 0x25;
Code:
//Turn off
*(BYTE*)0x4D14B7 = 0x25; //IW5M/Tekno

//Turn on
*(BYTE*)0x4D14B7 = NULL;
Oh, yeah. Shame on me - don't know why I didn't thought of this
Okay, one last question: Im trying to enable the advanced UAV - it is no problem with the normal UAV, that works as a charm. But when i activate the advanced UAV, the dots on the minimap turn into the triangles for half a second and then turn back into dots, so it doesn't stay active. Any idea?
Quote Originally Posted by x2Sorcer View Post
Oh, yeah. Shame on me - don't know why I didn't thought of this
Okay, one last question: Im trying to enable the advanced UAV - it is no problem with the normal UAV, that works as a charm. But when i activate the advanced UAV, the dots on the minimap turn into the triangles for half a second and then turn back into dots, so it doesn't stay active. Any idea?
Make a timer to re-write them every few milliseconds. (I used 5ms);
Code:
//In a thread
void AdvUAV()
{
   while(1)
   {
      *(BYTE*)CG->AdvUAV = 0x1;
      Sleep(5);
   }
}
Dim Buffer As Byte() = {&H25}
WriteMemory(&HAddress, Buffer)

It isn't 30 just because cheat engine reads that as first value.
Code:
// Variable:
DWORD Laser_Pattern;
INT Laser_Function;

// Pattern Scan:
Laser_Pattern = FindPattern(iw5mp, 0x401000, (PBYTE)"\x74\x25\x8B\x0F\x8B\x54\x24\x78", "xxxxxxxx");

// Bytes:

"\x74\x25" // Off
"\x90\x90" // On

//Function:

if(Laser_Function)
     memcpy((PVOID)Laser_Pattern, "\x90\x90", 2);
 else
     memcpy((PVOID)Laser_Pattern, "\x74\x25", 2);
Quote Originally Posted by luizimloko View Post
Code:
// Variable:
DWORD Laser_Pattern;
INT Laser_Function;

// Pattern Scan:
Laser_Pattern = FindPattern(iw5mp, 0x401000, (PBYTE)"\x74\x25\x8B\x0F\x8B\x54\x24\x78", "xxxxxxxx");

// Bytes:

"\x74\x25" // Off
"\x90\x90" // On

//Function:

if(Laser_Function)
     memcpy((PVOID)Laser_Pattern, "\x90\x90", 2);
 else
     memcpy((PVOID)Laser_Pattern, "\x74\x25", 2);
Watch Out We Got a badass over here
And -InSaNe- already posted that pattern.
Another question to the Advanced UAV. Im refreshing the aUAV every milisecond (1ms), but anyway it is flickering ingame, means it flahes from advanced to normal uav and back again. Any idea?

Thanks in advance
Sorcer
Quote Originally Posted by x2Sorcer View Post
Another question to the Advanced UAV. Im refreshing the aUAV every milisecond (1ms), but anyway it is flickering ingame, means it flahes from advanced to normal uav and back again. Any idea?

Thanks in advance
Sorcer
As far as I tried, you can't do that in a timer... It has to be faster than 1ms... Either you create a thread and put your code inside it... or move on to C++ :P
If you use an internal hack, as Insane said, the game executes it faster. Especially if it hooks a game function.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us