autoshove during unholstering, use m_Gender instead of m_survivorCharacter

valve uses translator based on s_iSurvivorSet for m_survivorCharacter which is avoidable using m_Gender but potentially unsafe (on modded servers)
This commit is contained in:
explorer
2024-12-11 06:54:07 +03:00
parent 02e94e451c
commit 9efc44f17e
2 changed files with 6 additions and 4 deletions

View File

@ -240,9 +240,9 @@ 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"Bill", (wchar_t*)L"Zoey", (wchar_t*)L"Francis", (wchar_t*)L"Louis", (wchar_t*)L"Nick", (wchar_t*)L"Rochelle", (wchar_t*)L"Coach", (wchar_t*)L"Ellis" };
Paint_Data->Name = Survivors[*(__int32*)((unsigned __int32)Target->Self + 7308)];
Paint_Data->Name = Survivors[*(__int32*)((unsigned __int32)Target->Self + 52) - 3];
}
__int8 Ghost = 0;