fix typo, anti-afk (fixes #3)

typo is actually on valve's side (array was taken from game's SurvivorCharacterDisplayName function)
This commit is contained in:
explorer
2025-02-01 15:56:59 +03:00
parent d5a3de9a21
commit 631d1e1358
3 changed files with 4 additions and 2 deletions

View File

@ -240,7 +240,7 @@ void __thiscall Redirected_Paint(void* Panel)
if (Target->Identifier == 232)
{
static wchar_t* Survivors[8] = { (wchar_t*)L"Nick", (wchar_t*)L"Rochelle", (wchar_t*)L"Coach", (wchar_t*)L"Ellis", (wchar_t*)L"Bill", (wchar_t*)L"Zoey", (wchar_t*)L"Francis", (wchar_t*)L"Louis" };
static wchar_t* Survivors[8] = { (wchar_t*)L"Nick", (wchar_t*)L"Rochelle", (wchar_t*)L"Coach", (wchar_t*)L"Ellis", (wchar_t*)L"Bill", (wchar_t*)L"Zoey", (wchar_t*)L"Louis", (wchar_t*)L"Francis" };
Paint_Data->Name = Survivors[*(__int32*)((unsigned __int32)Target->Self + 7308) + 4 * (*(__int32*)((unsigned __int32)Client_Module + 8144624) == 1)];
}