PlayerRelationship: GR_TEAMMATE on checking itself

This commit is contained in:
s1lentq 2024-01-12 09:16:20 +07:00
parent 15df1a9cf2
commit e636cbc8f5
2 changed files with 4 additions and 1 deletions

View File

@ -4341,6 +4341,9 @@ edict_t *EXT_FUNC CHalfLifeMultiplay::__API_HOOK(GetPlayerSpawnSpot)(CBasePlayer
int CHalfLifeMultiplay::PlayerRelationship(CBasePlayer *pPlayer, CBaseEntity *pTarget)
{
if (pPlayer == pTarget)
return GR_TEAMMATE;
#ifdef REGAMEDLL_ADD
if (IsFreeForAll())
{

View File

@ -3663,7 +3663,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(JoiningThink)()
}
if (m_pIntroCamera && gpGlobals->time >= m_fIntroCamTime
#ifdef REGAMEDLL_FIXES
#ifdef REGAMEDLL_FIXES
&& m_fIntroCamTime > 0.0 // update only if cameras are available
#endif
)