View Full Version: pcar, pplayer, and pobj

CheatSync.net Forums > Cheat Device Development > pcar, pplayer, and pobj



Title: pcar, pplayer, and pobj


Durka Durka Mahn - October 13, 2007 06:51 PM (GMT)
If you have ever seen a cheat device code, chances are, you have seen on of these 3 variables:
pcar
pplayer
pobj

Well, here is what they do:
Basically, they are pointers. What is a pointer? A pointer is an address with a value that holds the location of another address. So, by using one of the 3 variables, you will be dealing with the memory around an address.

-pcar
pcar is a pointer that points to the car that the player is in.

-pplayer
pplayer is a pointer that points to the player himself.

-pobj
pobj is a variable that counts for both pcar and pplayer. If the player is in a car, pobj is equal to pcar. If he isn't, pobj is equal to pplayer.

Now, when would you use them?

Well here's how:
setfloat(pcar+0x30, 325.6, 234.9, 90.0);
setfloat(pplayer+0x30, 325.6, 234.9, 90.0);
setfloat(pobj+0x30, 325.6, 234.9, 90.0);

All 3 of these functions will change the coordinates of the player to 325.6, 234.9, 9.0. HOWEVER! The first one will ONLY move the player if he is in a car, the second will ONLY move the player if he is on foot, and the third will move him if he is in either one. Get the difference?

Hope this helps!

dom_mc_cfc1 - October 13, 2007 07:05 PM (GMT)
thanks!

Li'l Freak - October 13, 2007 07:12 PM (GMT)
Random But useful info.

Durka Durka Mahn - October 13, 2007 07:16 PM (GMT)
It's not random, it's a vital part in cheat making.

emcp - October 13, 2007 07:38 PM (GMT)
thanks i always use to think pobj was the player object eg gun or what it was touching etc





Hosted for free by InvisionFree