Donetsk/hook_lib/screen.cpp

27 lines
834 B
C++
Raw Permalink Normal View History

#include "addr_utils.hpp"
2023-10-24 10:16:45 -04:00
#include "screen.h"
#include "debug_output.h"
2023-10-24 10:16:45 -04:00
void CG_DrawWaterMark()
{
float white[4] = { 1.0f, 1.0f, 1.0f, 0.2f };
// CL_DrawText(0x14EF2DEA0_g, "Fuck off activision you cunts", 0x7FFFFFFF, *reinterpret_cast<uintptr_t*>(0x14EEB0C68_g), 0, 400.0f, 1, 1, 0.80000001, 0.80000001, white, 7);
}
void CL_ScreenMP_DrawOverlay_Detour()
{
auto DevGui_Draw = reinterpret_cast<void(*)(int)>(0x1417E5CD0_g);
auto Con_DrawConsole = reinterpret_cast<void(*)(int)>(0x1415AE0B0_g);
gameInitialized = true;
2023-10-24 10:16:45 -04:00
Con_DrawConsole(0);
DevGui_Draw(0);
if (show_watermark->current.enabled) {
CG_DrawWaterMark();
}
float white[4] = { 1.0f, 1.0f, 1.0f, 0.075f };
2024-03-19 00:30:38 -04:00
CL_DrawText(0x14EF2DEA0_g, "Project Warzon", 0x7FFFFFFF, *reinterpret_cast<uintptr_t*>(0x14EEB0C68_g), 0, 480, 1, 1, 0.45000001, 0.45000001, white, 7);
2023-10-24 10:16:45 -04:00
}