Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't observer while player dying with EF_NODRAW flag #646

Closed
wopox1337 opened this issue Jun 19, 2021 · 0 comments · Fixed by #647
Closed

Can't observer while player dying with EF_NODRAW flag #646

wopox1337 opened this issue Jun 19, 2021 · 0 comments · Fixed by #647
Assignees

Comments

@wopox1337
Copy link
Collaborator

wopox1337 commented Jun 19, 2021

When a dead player has flag EF_NODRAW we can't observe him while this player dying.

// Don't spec observers or players who haven't picked a class yet
if (!pPlayer || pPlayer == this || pPlayer->has_disconnected || pPlayer->GetObserverMode() != OBS_NONE || (pPlayer->pev->effects & EF_NODRAW) || pPlayer->m_iTeam == UNASSIGNED || (bSameTeam && pPlayer->m_iTeam != m_iTeam))
return nullptr;

More info: https://dev-cs.ru/threads/15986/#post-107757

@wopox1337 wopox1337 changed the title Can't observer player with EF_NODRAW flag Can't observer while player dying with EF_NODRAW flag Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants