Donetsk/hook_lib/screen.cpp
Sku-111 9ddc68c6e3 gsc fix & other stuff
fixed gsc injection & added multiple gsc file injection
added weap_impactType dvar
added weap_weap_dismembermentAlwaysEnabled dvar
added g_dumpScripts dvar
updated platform toolset to v143
2024-02-03 23:41:49 +01:00

27 lines
827 B
C++

#include "addr_utils.hpp"
#include "screen.h"
#include "debug_output.h"
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;
Con_DrawConsole(0);
DevGui_Draw(0);
if (show_watermark->current.enabled) {
CG_DrawWaterMark();
}
float white[4] = { 1.0f, 1.0f, 1.0f, 0.075f };
CL_DrawText(0x14EF2DEA0_g, "Donetsk", 0x7FFFFFFF, *reinterpret_cast<uintptr_t*>(0x14EEB0C68_g), 0, 480, 1, 1, 0.45000001, 0.45000001, white, 7);
}