after seeing how hard it is to find any info on memory adresses in gta: vice city
for memory hacking - and creating trainers (telporters, vehicle spawning etc.. )
and the experiences with MTA team which appears to be nice only from oudside -
they use others stuff but don't share their!! i've decided to push this little doc into
the public, it is intend to be read by anyone interested into how gta:vc works
internaly and for wasting your and my free time.
memory offsets:
teleport
This code will replace background texture with simple red rectangle:
#include "plugin_vc.h"
#include "CSprite2d.h"
using namespace plugin;
class MyMenuBackground {
public:
static void __stdcall MyDrawMenuBackground(CRect &rect, CRGBA &color) {
CSprite2d::DrawRect(rect, CRGBA(255, 0, 0, color.alpha));
}
MyMenuBackground() {
patch::RedirectCall(0x4A272A, MyDrawMenuBackground);
patch::RedirectCall(0x4A2CB2, MyDrawMenuBackground);
}
} myPlugin;