Professional Documents
Culture Documents
123
0xABCF0 or 0xabcf0
0b00100101101
1.23
'a', 'b', 'c', '\n'
Some examples:
// any comments, such as author credits
#cheat Teleport: Top of Tall Building
teleport(95, -1509, 216.98);
#cheat Hud On
setchar(0x08b59b0a, 1); // address not ported to VCS yet
#cheat Hud Off
setchar(0x08b59b0a, 0); // address not ported to VCS yet
#cheat Max Money
setint(0x08bde55c, 99999999);
setint(0x08bde55c, 99999999);
Functions with "..." can write any number of values starting at the given
address, so Max Money could also be written as:
#cheat Max Money
setint(0x08bde55c, 99999999, 99999999);
#cheat No Money
setint(0x08bde55c, 0, 0);
#cheat Time is 9:30am
setchar(0x08bb3b40, 9, 30);
The #off section is used to set a value back to its normal setting and is
executed a single time when a cheat is turned off. For example:
// by vettefan
#cheat Invisible Toni
setchar(pplayer + 0x19A, 0xE2); // address not ported to VCS yet
#off
setchar(pplayer + 0x19A, 0x02);
// by chrislawrance
#cheat Lock Camera
setchar(pplayer + 0x560, 1); // address not ported to VCS yet
#off
setchar(pplayer + 0x560, 0);
Integer values can be treated as signed or unsigned. All of the following
commands set the same value:
setchar(0x08bde55c, 255);
setchar(0x08bde55c, -1);
setchar(0x08bde55c, 0xff);
setchar(0x08bde55c, 0xFF);
setchar(0x08bde55c, 0b11111111);
sethex(0x08bde55c, ff);
sethex is just a version of setchar that assumes all values are hex so you
can leave off the 0x.
Cheat Maker automatically performs region conversion behind the scenes
so users of the UK version see the same addresses as the US version and
addresses entered are automatically converted to the correct region.
There is no need to give different versions of cheats for UK and US
versions of the game.
CheatDevice 2.0 Advanced Features
--------------------------------The language has been extended to include much of the C syntax. Most
operators and some of the main keywords are supported. Although loops are
supported, be careful with them, as they make it very easy to slow down
the game too much.
Keywords:
if else for while break continue true false { }
Operators:
, = += -= *= /= %= /= %= &= ^= |= <<= >>= ?: || &&
| ^ & == != < > <= >= << >> + - * / % & ! ~ ++ -- ( )
Stdlib functions:
abs, fabs, sqrt, sin, cos, tan, rand,
CTRL_LTRIGGER
CTRL_RTRIGGER
CTRL_TRIANGLE
CTRL_CIRCLE
CTRL_CROSS
CTRL_SQUARE
CTRL_HOME
CTRL_VOLUP
CTRL_VOLDOWN
CTRL_SCREEN
CTRL_NOTE
+
&
^
|
|
1); // increment
0xFE); // clear a bit
0x02); // flip a bit
0x08); // set a bit
0b00001000); // set a bit could also be done this wa
y
static fInit;
if (!fInit)
{
fInit = true;
// do something just once
}
// rotational control
setfloat(pcar + 0x0078, -0.03 * xstick);
}