Code:
void DrawSetColor(Color col)
{
typedef void(__thiscall* oDrawSetColor)(PVOID, Color);
return call_vfunc< oDrawSetColor >(this, 14)(this, col);
}
void DrawFilledRect(int x0, int y0, int x1, int y1)
{
typedef void(__thiscall* oDrawSetColor)(PVOID, int, int, int, int);
return call_vfunc< oDrawSetColor >(this, 16)(this, x0, y0, x1, y1);
}
void DrawOutlinedRect(int x0, int y0, int x1, int y1)
{
typedef void(__thiscall* oDrawOutlinedRect)(PVOID, int, int, int, int);
return call_vfunc< oDrawOutlinedRect >(this, 18)(this, x0, y0, x1, y1);
}
void DrawLine(int x0, int y0, int x1, int y1)
{
typedef void(__thiscall* oDrawLine)(PVOID, int, int, int, int);
return call_vfunc< oDrawLine >(this, 19)(this, x0, y0, x1, y1);
}
void DrawSetTextFont(unsigned long hFont)
{
typedef void(__thiscall* oDrawSetTextFont)(PVOID, unsigned long);
return call_vfunc< oDrawSetTextFont >(this, 23)(this, hFont);
}
void DrawSetTextColor(Color col)
{
typedef void(__thiscall* oDrawSetTextColor)(PVOID, Color);
return call_vfunc< oDrawSetTextColor >(this, 24)(this, col);
}
void DrawSetTextPos(int x, int y)
{
typedef void(__thiscall* oDrawSetTextPos)(PVOID, int, int);
return call_vfunc< oDrawSetTextPos >(this, 26)(this, x, y);
}
void DrawPrintText(wchar_t *text, int textLen, FontDrawType_t drawType = FONT_DRAW_DEFAULT)
{
typedef void(__thiscall* oDrawPrintText)(PVOID, wchar_t*, int, FontDrawType_t);
return call_vfunc< oDrawPrintText >(this, 28)(this, text, textLen, drawType);
}
For Combat Weapon