mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
PlayerRelationship: GR_TEAMMATE on checking itself
This commit is contained in:
parent
15df1a9cf2
commit
e636cbc8f5
@ -4341,6 +4341,9 @@ edict_t *EXT_FUNC CHalfLifeMultiplay::__API_HOOK(GetPlayerSpawnSpot)(CBasePlayer
|
|||||||
|
|
||||||
int CHalfLifeMultiplay::PlayerRelationship(CBasePlayer *pPlayer, CBaseEntity *pTarget)
|
int CHalfLifeMultiplay::PlayerRelationship(CBasePlayer *pPlayer, CBaseEntity *pTarget)
|
||||||
{
|
{
|
||||||
|
if (pPlayer == pTarget)
|
||||||
|
return GR_TEAMMATE;
|
||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
if (IsFreeForAll())
|
if (IsFreeForAll())
|
||||||
{
|
{
|
||||||
|
@ -3663,7 +3663,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(JoiningThink)()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_pIntroCamera && gpGlobals->time >= m_fIntroCamTime
|
if (m_pIntroCamera && gpGlobals->time >= m_fIntroCamTime
|
||||||
#ifdef REGAMEDLL_FIXES
|
#ifdef REGAMEDLL_FIXES
|
||||||
&& m_fIntroCamTime > 0.0 // update only if cameras are available
|
&& m_fIntroCamTime > 0.0 // update only if cameras are available
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user