Donetsk/hook_lib/transients.cpp
2023-10-24 16:16:45 +02:00

18 lines
405 B
C++

#include "transients.h"
#include "game_inc.h"
void CL_TransientsCollisionMP_SetTransientMode_Detour(int mode)
{
if (strcmp(Dvar_GetStringSafe("NSQLTTMRMP"), "mp_donetsk") == 0)
{
*reinterpret_cast<int*>(0x145CC7534_g) = 1;
}
else {
*reinterpret_cast<int*>(0x145CC7534_g) = mode;
}
}
char CL_TransientsMP_ProcessLoadingQueue_Detour()
{
return CL_TransientsMP_ProcessLoadingQueue.stub<char>();
}