Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Functions for PreGame Draw Text
- opd_s Dvar_GetBool_t = { 0x3DA948, TOC };
- opd_s Dvar_FindMalleableVar_t = { 0x3DA628, TOC };
- opd_s Material_RegisterHandle_t = { 0x763220, TOC };
- opd_s R_RegisterFont_t = { 0x75A2C0, TOC };
- opd_s R_AddCmdDrawTextInternal_t = { 0x76A910, TOC };
- opd_s R_AddCmdDrawStretchPicInternal_t = { 0x076A3E8, TOC };
- dvar_t*(*Dvar_FindMalleableVar)(const char* LocalClient) = (dvar_t*(*)(const char*))&Dvar_FindMalleableVar_t;
- void(*R_AddCmdDrawTextInternal)(const char* text, int maxChars, void* font, float x, float y, float yScale, float xScale, float rotation, float* colors, int Style) = (void(*)(const char*, int, void*, float, float, float, float, float, float*, int))&R_AddCmdDrawTextInternal_t;
- void(*R_AddCmdDrawStretchPicInternal)(float x, float y, float w, float h, float s0, float t0, float s1, float t1, float* color, void *material) = (void(*)(float, float, float, float, float, float, float, float, float*, void*))&R_AddCmdDrawStretchPicInternal_t;
- bool(*Dvar_GetBool_f)(dvar_t* LocalClient) = (bool(*)(dvar_t*))&Dvar_GetBool_t;
- void*(*Material_RegisterHandle)(const char *name, int imageTrack, bool errorIfMissing, int waitTime) = (void*(*)(const char*, int, bool, int))&Material_RegisterHandle_t;
- void*(*R_RegisterFont)(const char * name, int imageTrack) = (void*(*)(const char*, int))&R_RegisterFont_t;
- opd_s DefCallback_t = { 0x462E34, TOC };
- void(*DefCallback)(uint64_t status, uint64_t param, void *userdata) = (void(*)(uint64_t, uint64_t, void *))&DefCallback_t;
- opd_s printfContentsPtr = { 0x3E4970 , TOC };
- int(*com_sprintf)(char* dest, int size, const char* fmt, ...) = (int(*)(char*, int, char const*, ...)) &printfContentsPtr;
- void DrawText(const char *Text, const char *FontName, float x, float y, float Scale, Color color)
- {
- R_AddCmdDrawTextInternal(Text, 0x7FFFFFFF, R_RegisterFont(FontName, 0), x, y, Scale, Scale, 0, (float*)&color, 0);
- }
- void DrawShader(float X, float Y, float Width, float Height, Color color, const char *Material)
- {
- R_AddCmdDrawStretchPicInternal(X, Y, Width, Height, 0, 0, 1, 1, (float*)&color, Material_RegisterHandle(Material, 0, 0, 0));
- }
- void Menu_PaintAllStub(...)
- {
- __asm("li %r3, 0x1;");
- }
- bool Dvar_GetBool(const char *dvarName)
- {
- if (Dvar_GetBool_f(Dvar_FindMalleableVar(dvarName))) return true;
- }
- bool InGame()
- {
- if (Dvar_GetBool("cl_ingame")) return true;
- }
- ####CREDITS####SABOTAGE####
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement