mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Restore FL_SPECTATOR
This commit is contained in:
parent
ab875f9d90
commit
fe15dc19e0
@ -217,7 +217,7 @@ void UTIL_BecomeSpectator( CBasePlayer *pPlayer )
|
||||
{
|
||||
//pPlayer->m_bDoneFirstSpawn = true;
|
||||
pPlayer->pev->takedamage = DAMAGE_NO;
|
||||
//pPlayer->pev->flags |= FL_SPECTATOR;
|
||||
pPlayer->pev->flags |= FL_SPECTATOR;
|
||||
pPlayer->pev->flags |= FL_NOTARGET;
|
||||
pPlayer->pev->effects |= EF_NODRAW;
|
||||
pPlayer->pev->solid = SOLID_NOT;
|
||||
|
@ -627,7 +627,6 @@ void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer )
|
||||
if( pPlayer->gravgunmod_data.m_state == STATE_UNINITIALIZED )
|
||||
{
|
||||
ClientPutInServer( pPlayer->edict() );
|
||||
UTIL_BecomeSpectator( pPlayer );
|
||||
return;
|
||||
}
|
||||
|
||||
@ -639,7 +638,7 @@ void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer )
|
||||
return;
|
||||
}
|
||||
|
||||
if( mp_coop_changelevel.value && pPlayer->gravgunmod_data.m_state == STATE_POINT_SELECT && !pPlayer->IsObserver() )
|
||||
if( mp_coop_changelevel.value && pPlayer->gravgunmod_data.m_state == STATE_POINT_SELECT && !(pPlayer->pev->flags & FL_SPECTATOR) )
|
||||
{
|
||||
pPlayer->RemoveAllItems( TRUE );
|
||||
UTIL_BecomeSpectator( pPlayer );
|
||||
|
Loading…
x
Reference in New Issue
Block a user