Found through disassembly.
PHP Code:
_DWORD __cdecl CTerrorPlayer::GiveDefaultItems(CTerrorPlayer *__hidden this)
Part of pseudocode:
PHP Code:
if ( !(unsigned __int8)CDirectorChallengeMode::GiveDefaultItems(*((CDirectorChallengeMode **)TheDirector + 354), this) )
{
(*(void (**)(void))(*(_DWORD *)this + 1728))();
if ( ((unsigned __int8)CTerrorGameRules::IsSurvivalMode(this)
|| (unsigned __int8)CTerrorGameRules::IsScavengeMode(v23))
&& !*((_BYTE *)this + 0x4000) )
{
(*(void (__cdecl **)(CTerrorPlayer *, const char *, _DWORD, int, _DWORD))(*(_DWORD *)this + 1728))(
this,
"weapon_pistol",
0,
1,
0);
(*(void (__cdecl **)(CTerrorPlayer *, char *, _DWORD, int, _DWORD))(*(_DWORD *)this + 1728))(
this,
"first_aid_kit",
0,
1,
0);
(*(void (__cdecl **)(CTerrorPlayer *, char *, _DWORD, int, _DWORD))(*(_DWORD *)this + 1728))(
this,
"pain_pills",
0,
1,
0);
}
Linux signature:
Code:
_ZN13CTerrorPlayer16GiveDefaultItemsEv