Post: Mw2 Non host Shaders and Text
07-30-2015, 12:05 AM #1
Vuvor
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); here i spent like 2 hours in ida looking for these cause im kinda a noob but finaly i got the addresses so i thought id share them with you and id like to thank shark cause he was the one who taucht me how to find addresses in the first place so without him this would not be a post anyway enjoy and i hope you make something cool!

    
enum GotUrAddresses
{
R_RegisterFont = 0x004C7228,
Material_RegisterHandle = 0x004C6D28,
R_AddCmdDrawText = 0x004C7248,
R_AddCmdDrawStretchPic = 0x00097D60,
};

opd_s R_RegisterFont_s = { R_RegisterFont, TOC };
void*(*R_RegisterFont)(const char * font, int imageTrac) = (void*(*)(const char *, int))&R_RegisterFont_s;
opd_s Material_RegisterHandle = { Material_RegisterHandle, TOC };
void*(*R_RegisterMaterial)(const char* font, int imageTrac) = (void*(*)(const char*, int))&Material_RegisterHandle;
opd_s R_AddCmdDrawStretchPic_s = { R_AddCmdDrawStretchPic, TOC };
void(*R_AddCmdDrawStretchPic)(float x, float y, float width, float height, float xScale, float yScale, float xay, float yay, const float *color, void *material) = (void(*)(float x, float y, float width, float height, float xScale, float yScale, float xay, float yay, const float *color, void *material))&R_AddCmdDrawStretchPic_s;
opd_s R_AddCmdDrawText_s = { R_AddCmdDrawText, TOC };
void(*R_AddCmdDrawText)(const char *text, int maxChars, void *font, float x, float y, float xScale, float yScale, float rotation, const float *color, int style) = (void(*)(const char *, int, void *, float, float, float, float, float, const float *color, int))&R_AddCmdDrawText_s;


void R_AddCmdDrawStretchPicInternal(float x, float y, float width, float height, const float * color, const char * material)
{
R_AddCmdDrawStretchPic(x, y, width, height, 1, 1, 1, 1, color, R_RegisterMaterial(material, 0));
}

void R_AddCmdDrawTextInternal(const char *xtext, int ItemIndex, float xx, float xy, const char *xfont, float xfontSize, const float* colour)
{
R_AddCmdDrawText(xtext, 0x7FFFFFFF, R_RegisterFont(xfont, 0), xx, xy, xfontSize, xfontSize, 0, colour, 0);
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to Vuvor for this useful post:

Connerg123, HiddenHour, Krool, sleekshow
07-30-2015, 08:42 AM #2
Good job man aint messed with this for mw2 yet i found R_AddCmdDrawStretchPic a while back but never got round to finding the rest aha
07-31-2015, 01:43 AM #3
Vuvor
Save Point
Originally posted by Connerg123 View Post
Good job man aint messed with this for mw2 yet i found R_AddCmdDrawStretchPic a while back but never got round to finding the rest aha


thanks man means alot i noticed you help this community out alot!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo